Skip to content

Instantly share code, notes, and snippets.

@cjwfuller
Created November 25, 2012 10:32
Show Gist options
  • Save cjwfuller/4143025 to your computer and use it in GitHub Desktop.
Save cjwfuller/4143025 to your computer and use it in GitHub Desktop.
Backup a directory with a timestamp in the directory name
cp -r dir/to/backup backup-$(date +"%Y-%m-%d-%T")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment