I use the following BAT file to do daily backups:
start /b C:\Program Files\WinRAR\winrar a -u -as -r -ms N:\ProjectsBackup.rar c:\users\depidsvy\NetBeansProjects\
- start /b - open WinRar and close the black CMD window immediately (as opposed to keep it open while archiving)
- a - add new files
- -u - keep unchanged files - don't repack again
- -as - delete deleted files from the archive
- -r - with subfolders
- -ms - don't pack, include as they are the following files: 7z, ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3, rar, taz, tgz, z, zip
Enjoy