Question.


I have a directory that I want to automatically backup to a zip file
regularly (say weekly). But I want to create a rolling backup version
of the compressed files.



1. You can use a command line zip program like arj.exe and use the
WINDOWS SCHEDULER to automatically lunch the batch file (SAY TWICE A
WEEK) similar below:



FILE: backupvss.bat
----------------------------

REM THIS ONE WORKS ON VISUAL SOURCESAFE WITH SOURCE SAFE CHECKING

rem maintain 10 rolling backup
del c:\bat\test.arj
c:\u\arj\arj.exe a -r c:\bat\test f:\vssdb\*.*
IF ERRORLEVEL 1 GOTO SOMERROR

del vssdb_bkup16.arj
ren vssdb_bkup15.arj vssdb_bkup16.arj
ren vssdb_bkup14.arj vssdb_bkup15.arj
ren vssdb_bkup13.arj vssdb_bkup14.arj
ren vssdb_bkup12.arj vssdb_bkup13.arj
ren vssdb_bkup11.arj vssdb_bkup12.arj
ren vssdb_bkup10.arj vssdb_bkup11.arj
ren vssdb_bkup09.arj vssdb_bkup10.arj
ren vssdb_bkup08.arj vssdb_bkup09.arj
ren vssdb_bkup07.arj vssdb_bkup08.arj
ren vssdb_bkup06.arj vssdb_bkup07.arj
ren vssdb_bkup05.arj vssdb_bkup06.arj
ren vssdb_bkup04.arj vssdb_bkup05.arj
ren vssdb_bkup03.arj vssdb_bkup04.arj
ren vssdb_bkup02.arj vssdb_bkup03.arj
ren vssdb_bkup01.arj vssdb_bkup02.arj
ren vssdb_bkup00.arj vssdb_bkup01.arj
COPY TEST.ARJ vssdb_bkup00.arj


rem net stop wkservice & net start wkservice
ECHO GOOD BACKUP >> VSSBACKUP.LOG

call backup_vss_verify.bat


GOTO ENDPOINT

:SOMERROR
ECHO ERROR vss backup >> VSSBACKUP.LOG
GOTO ENDPOINT

:ENDPOINT
DATE /t >> VSSBACKUP.LOG
TIME /T >> VSSBACKUP.LOG
ECHO ----------------end >> VSSBACKUP.LOG






FILE:backup_vss_verify.bat
--------------------------------------------------


del f:\vssdb\data\backup\analyze.*

"C:\Program Files\Microsoft Visual Studio\VSS\win32\ANALYZE.EXE" -f -c
-d -v1 -i "f:\vssdb\data"

type f:\vssdb\data\backup\analyze.log >> VSSBACKUP.LOG