rtxn,

<span style="color:#323232;">rsync -a "somedir" "somedir_backup_$(date)"
</span>

If the date command returns an RFC-3339-formatted string, the filename will contain a space. If, for example, you want to iterate over the files using for d in $(find…) and forget to set $IFS properly, it can cause issues.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • memes@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #