Skip to content

Instantly share code, notes, and snippets.

@amatsumara
Last active November 22, 2017 15:32
Show Gist options
  • Save amatsumara/407b211a72b893bbe09bdd733aa5e400 to your computer and use it in GitHub Desktop.
Save amatsumara/407b211a72b893bbe09bdd733aa5e400 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/bash
tar=/usr/bin/tar
${tar} --exclude backups -czf file_`date +%F_%H%M%S`.tar.gz /path/something
# tar -cJf file_`date +%F_%H%M%S`.tar.xz /path/something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment