I would like to know if there is any existing unix utility or tool that would make a backup of a file with a date/timestamp appended to the filename.
Basically I am looking to automatically make backup of my config files like the .bashrc
, .vimrc
, etc when I change the file and save using some text editor.
vim
specific solution would also be helpful. May be adding some kind of hook only for specific files that creates a copy of the previously saved file and then goes on to save the currently modified file.
tmpwatch
to clean out old revisions after a certain amount of time. – Bratchley Jun 4 '13 at 10:53