-
-
Save cjus/a9aa504bf79b71d93753 to your computer and use it in GitHub Desktop.
Timed stamp, backup command alias for .bash_profile
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
bkup() { | |
d=`date +%Y%m%d-%H%M%S` | |
fname=''$1-$d.tgz | |
tar czf $fname $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creates a timestamped tar file.
Example:
creates