Created
March 18, 2010 17:25
-
-
Save scotje/336600 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Save a copy of this file to the backup directory | |
THEDATE=`date +"%Y%m%d"` | |
THETIME=`date +"%H%M%S"` | |
filedata=`cat` | |
mkdir -p "$TM_BACKUP_DIR/$THEDATE" | |
echo "$filedata" > "$TM_BACKUP_DIR/$THEDATE/$TM_FILENAME.$THEDATE.$THETIME.backup" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment