winrar has command line options. I use it for backing up several directories in a single .rar file.
This file can then be uncompressed using the standalone version of 7zip.
Here is the batch file I use in order to backup four important folders in a single self-extractible compressed file :
CODE
mkdir g:\tmp\backups
C:\PROGRA~1\WINRAR\RAR.EXE a -sfx -m5 g:\tmp\backups\motherPC d:\usr\Daddy
C:\PROGRA~1\WINRAR\RAR.EXE a -sfx -m5 g:\tmp\backups\motherPC D:\sources\Daddy\Mysql
C:\PROGRA~1\WINRAR\RAR.EXE a -sfx -m5 g:\tmp\backups\motherPC D:\TOOLS\standalone
C:\PROGRA~1\WINRAR\RAR.EXE a -sfx -m5 g:\tmp\backups\motherPC D:\Useful\Mother
RAR.EXE comes with the winrar installation.
-sfx says "please create a self-extracting archive"
You see that the foldes I backup are on my D: disk
and the backup is on my g: disk
So, if I loose the g: disk no problem because my original files are still here
And if I loose the D: disk I restore it from the backup on g:
And of course, the script finishes with a "net use" mounting a shared folder on another pc, and then "copy g:\tmp\backups\motherPC.* z:"
Hope this helped
Yordan
Comment/Reply (w/o sign-up)