Backup file in Linux with timestamp in file name

cp <file name> <filename>.`date +%Y%m%d%H%M%S`

For example:

cp file file_`date +%m%d%y%H%S%M`


The file name will be as something like file_070611153331

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...