For about a year now when I'm working on some little program I make a "backups" subdir and whenever I get around to it I copy the file I'm working on in there with the date and time on the file as part of the file name. I finally wrote a little C program that does the same thing.
It makes a "backups" subdir if there isn't one, then copies every normal, non-executable file in the current directory using the last modified date/time on the files as part of the filename. file.c becomes backups/file_2013-05-04_1548.c, etc. If a file hasn't been changed since last time it gets skipped. Pure C, has no dependencies as far as I know, a 1.7 k tarball with make file. Tested under 4.7, 5.0, 5.2. There's a page at http://ab1jx.webs.com/calcs/backdir/index.html Alan -- Credit is the root of all evil. - AB1JX

