Update Read comments from user MWare below if you are having any trouble
So I wanted an easy and free way to backup my source code everyday. Well if you run Windows NT and have an Internet connection to download a copy of 7-zip you most certainly can backup your files regularly with unique filenames containing the date and time they were created - something that was a must for me. It helps if you have your source structured in a way that it all resides in a central location such as:
M:\XYZ Software\Source\Project A\
M:\XYZ Software\Source\Project B\
M:\XYZ Software\Source\Project C\
This way we can create a backup folder in the XYZ folder such as:
M:\XYZ Software\Source_Backup\
Then in XYZ Software place a copy of the 7za.exe file you downloaded and a batch file with the following code:
View the original version here (11/8/2005)
Every time this batch file is run from now it will generate a file in the Source_Backup folder like:
M:\XYZ Software\Source_Backup\2005-11-17-PM-11-04-Archive.zip
View version 2 here (3/15/2006)
This generates .7z files instead of .zip like listed below and is multithreaded for improved performance on multicore/multiprocessor machines. If you have a single core/CPU machine you may want to remvove the “-mmt=on” portion of the last line.
With the AM/PM setup this way when you sort by filename you will have your archives in the correct chronological order. Next simply schedule a task in Scheduled Tasks to run this batch file everyday at a given time. There you have it. Your own automated backup system. You could even add extra commands for AES encryption and then back it up off-site with FTP! Ah good old command line interface!