Created
January 30, 2016 21:55
-
-
Save clbarnes/c1104df7ebf3ac791faf to your computer and use it in GitHub Desktop.
Bash script for making a timestamped zip backup of everything in the current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
timestamp=$(date +"%Y-%m-%d_%H:%M:%S") | |
zip -r "backup_$timestamp.zip" * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment