Created
July 29, 2014 15:03
-
-
Save huskercane/dc9cec512dab502c8c80 to your computer and use it in GitHub Desktop.
Function to backup files with current date and time
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
| function backupfile(){ | |
| OF=$1-$(date +%Y%m%d-%H:%M:%S) | |
| cp $1 $OF | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment