Networking

Hardware

Software

Consultation

 

Adding a Date Element to a Backup

 
 

Whenever I backup a file I like to add a date to the end instead of just BackUp or BU. This is how I do it.

Lets say the file is named foo.bar, simply:

cp foo.bar{,.`date +%F`}

And foo.bar.<yyyy>-<mm>-<dd> will appear in the current folder