Skip to content

Instantly share code, notes, and snippets.

@clbarnes
Created January 30, 2016 21:55
Show Gist options
  • Save clbarnes/c1104df7ebf3ac791faf to your computer and use it in GitHub Desktop.
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
#!/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