Tuesday, February 15, 2011

#win32: automatic backup script for 7za

here is a small batch script for windows that will periodically create a zip backup of a certain folder with 7za.

on the top of the 'backup.cmd' it is possible to set:
- source path (folder where 'backup.cmd' is by default)
- target path
- update period (minutes)
- excluded files and sub-folders (7za option)
- other compressor options
(for more information about 7za options see: '7za -h')

just check the above settings and place the file in the project folder you wish to backup.
the result will be written at the 'target path' as 'foldername_date_timestamp.zip'.
it can be easily modified so that another compressor is used.

download link