What a relief to discover CBU for Win7 after ntbackup has been removed since WinXP. Thank you!
I have managed to follow the reference at Comodo Help to create my own weekly full backup and daily incremental backup scripts using CBU. These script run perfectly from the command line. When I set up two schedules in Win7 “Task Scheduler”, Sat runs the full backup script, Sun-Fri runs the incremental script, they start but they do not complete. The last incremental script returned a result of 0x800704DD. The last full backup script returned a result of 0x5C and an email with “Backup “\Files\backup_full_01_01_2011.cbu” failed with code 92”.
The backups can be quite large, the full backup was about 8.7 GB and the incremental about 1.3 GB, and they span both local discs and a network disc mounted as a drive letter. I tested the scripts on a smaller data set using the network mounted drive and these ran, inclusing from the scheduler (using right click “run”), but the full backup set only works fro mthe command line. I know that CBU can set up scheduled tasks, but that’s only good if you specify the scheduled task within CBU and I want it scripted in a .cmd file for my convenience to change.
The scripts are included here for inspection, and I am happy to receive advice on how I could better use the tool. The intent is they run during the night when users may or may not be logged on to the PC. Is there any reason why the scheduler is unable to run these scripts?
Thanks!
Philip
=== Comodo_Full_Backup.cmd ===
[at]echo off
rem On-line help on Comodo Backup
rem Comodo Help
rem On-line help on command line options
rem Comodo Help
set backup_path=\Files
set backup_path_last=\Last_Week
rem The file specification to list in the search for the last backup file.
set spec=backup_*.cbu
rem If the directory for last week exists
rmdir /s /q “%backup_path_last%” > nul
rem Create sub-directory for last weeks backups
mkdir “%backup_path_last%”
rem Move last weeks backups in
move “%backup_path%*” “%backup_path_last%”
rem Create a new full backup
rem For testing
rem set sources=“U:\website”
rem For real
set sources=“U:\website|U:\shared|U:\home|C:\inetpub\wwwroot|C:\Users”
set backup_dest_file=“%backup_path%\backup_full|DATE1|.cbu”
“C:\Program Files\Comodo\Comodo BackUp\CBU.exe” ^
/backup_operation ^
/type filesandfolders ^
/source %sources% ^
/exclusionfilter “.tmp|.bak|Thumbs.db” ^
/compressionlevel high ^
/description “Daily Scheduled Backup - Full” ^
/destinationtype destinationtypediskfile ^
/destinationpath %backup_dest_file% ^
/backup_type full ^
/compressionlevel medium ^
/diskusage high ^
/processorusage high ^
/locked_files_treatment vss ^
/emailnotification ^
/onsucces ^
/onfailure ^
/smtpserver xxxx.xxxxxx.org.uk ^
/port 25 ^
/subject “Weekly Full Backup” ^
/sender backup[at]xxxxxx.org.uk ^
/recipient me[at]xxxxxx.org.uk ^
/emailusername “xxxxxx” ^
/useSSL 0 ^
/guiRunModeServiceModeRun ^
/silentRun
=== Comodo_Incremental_Backup.cmd ===
[at]echo off
rem On-line help on Comodo Backup
rem Comodo Help
rem On-line help on command line options
rem Comodo Help
rem For testing
rem set sources=“U:\website”
rem For real
set sources=“U:\website|U:\shared|U:\home|C:\inetpub\wwwroot|C:\Users”
set backup_path=\Files
rem The file specification to list in the search for the last backup file.
set spec=backup_*.cbu
rem Find the newest file in the directory meeting the required file format
for /F "tokens=1 delims= " %%f in (‘dir “%backup_path%%spec%” /a-d /od /b’)
do set backup_last_file=“%backup_path%%%f”
rem Name for the file to be created, including Comodo filename macros
set backup_dest_file=“%backup_path%\backup|INCREMENTAL_NO||DATE1|.cbu”
“C:\Program Files\Comodo\Comodo BackUp\CBU.exe” ^
/backup_operation ^
/type filesandfolders ^
/source %sources% ^
/exclusionfilter “.tmp|.bak|Thumbs.db” ^
/description “Daily Scheduled Backup - Incremental” ^
/destinationtype destinationtypediskfile ^
/destinationpath %backup_dest_file% ^
/backup_type incremental ^
/parent_backup_storage_type destinationtypediskfile ^
/parent_backup_path %backup_last_file% ^
/compressionlevel medium ^
/diskusage high ^
/processorusage high ^
/compressionlevel medium ^
/diskusage high ^
/processorusage high ^
/locked_files_treatment vss ^
/emailnotification ^
/onsucces ^
/onfailure ^
/smtpserver xxxx.xxxxxx.org.uk ^
/port 25 ^
/subject “Weekly Full Backup” ^
/sender backup[at]xxxxxx.org.uk ^
/recipient me[at]xxxxxx.org.uk ^
/emailusername “xxxxxx” ^
/useSSL 0 ^
/guiRunModeServiceModeRun ^
/silentRun