Lets take the following directory structure:
The automated backup script is composed of two files: filelist.lst and backup.bat.
The filelist.lst contains the path(s) to the different locations which should be included in the backup. In our example it would look like this:
The 2nd file backup.bat contains the command line actions to the rar.exe file for creating the compressed backup. Its content looks as follows:
Here the highlighted path to the rar.exe has to be modified according to the right location on your own workstation. Both files (filelist.lst and backup.bat) should be placed inside the "MyProjectBackup" folder of our sample-folder structure. A simple double-click on the backup.bat creates the backup and puts it into the "MyProjectBackup" folder. For convenience purposes the backup.bat file can be linked from some other location (i.e. place a link to the desktop).
"c:\Program Files\WinRar\rar.exe" a -agYYYY-MM-DD_HH.MM MyBackupFileName -r -m5 @filelist.lst