PDA

View Full Version : Exception Error using script


22-Apr-2004, 08:16 AM
Hello,

I'am using a daily script for copying new files checked against a previous stored snapshot. However during the creation of a new snapshot using the script I get an exception error.

My script:

criteria timestamp:2sec;IgnoreDST size
filter -Zeitplaner.zpl.tmp
load %1 %2
expand all
select right.newer.files right.orphan.files
copyto path:base %3
snapshot save-crc path:"C:\Dokumente und Einstellungen\busao\Eigene Dateien\" output:"C:\Programme\DailyBackup\Eigene_Dateien"

The log:
>>snapshot save-crc path:"C:\Dokumente und Einstellungen\busao\Eigene Dateien\" output:"C:\Programme\DailyBackup\Eigene_Dateien"
Beyond Compare Version 2.1.2 (build 216)
Exception occurred at: 0001B712
List index out of bounds (1)
Stored Snapshot of C:\Dokumente und Einstellungen\busao\Eigene Dateien in C:\Programme\DailyBackup\Eigene_Dateien.bcss

The parameters %1, %2, %3 are set as follows:

%1 = "C:\Programme\DailyBackup\Eigene_Dateien.bcss"
%2 = "C:\Dokumente und Einstellungen\busao\Eigene Dateien" %3 = c:\#Backup\Home

Can anybody help me regarding this behaviour.

Regards,

Oliver

Chris
22-Apr-2004, 05:00 PM
Hi Oliver,

Thanks for reporting this bug. I was able to reproduce the exception consistently.

I will add it to our bug database to be fixed.

As a work around until we can fix the problem, I tried running the script with the snapshot line commented out, and running just the snapshot line with everything else commented out. They both worked, but running the entire script caused the exception.

It isn't elegant, but you can create a batch file that will call the script minus the snapshot line, and then a script with just the snapshot line. The first call needs a /wait switch to wait for the first instance of BC to finish before doing the snapshot.

Here's an example .bat file to call the two scripts:


start /wait bc2.exe /silent @script.txt
start bc2.exe /silent @snapshot.txt

23-Apr-2004, 12:28 AM
Hi Chris,

Thank you for the realy fast response and for the suggested workaround.

Regards,

Oliver

Craig
23-Apr-2004, 09:32 AM
Oliver,

This error is occuring because you're overwriting the snapshot that you have loaded as a base folder. A quick way to work around this using your existing script would be to just add the line "load %2" between the "copyto" and "snapshot" commands. That works and doesn't need either the batch file or a second script.

BTW, the comparison that you're doing isn't comparing CRC values. If you want to compare CRCs you should add it to the "criteria" command. If you don't, you should be able to take the "save-crc" out of the "snapshot" command, since it's just wasting time if you don't use them.