Actually, it's system files that are giving me grief and I was trying to use attrib to get around them. I noticed that the synch command was not deleting right-hand folders if they contained a system file (like thumbs.db - though the same problem occurs with right-hand read-only files). So I thought I'd change the attributes of the orphan files and then delete them before running the synch command.
Here's my script:
load "G:\My Pictures\2006" "N:\My Pictures\2006"
expand all
criteria timestamp:1sec;IgnoreDST
folder-report title:"2006 Images" layout:side-by-side output-to:"C:\Documents and Settings\Tim Buchanan\My Documents\Backup Logs\20070812-133307-2006 Images-Report.html" options:display-mismatches output-options:html-color
log verbose "C:\Documents and Settings\Tim Buchanan\My Documents\Backup Logs\20070812-133307-2006 Images-BCLog.txt"
select rt.orphan
attrib -s
delete rt
sync create-empty mirror:lt->rt
This script dumps the following in the log:
8/12/2007 1:33:10 PM >> log verbose "C:\Documents and Settings\Tim Buchanan\My Documents\Backup Logs\20070812-133307-2006 Images-BCLog.txt"
8/12/2007 1:33:10 PM User name: Tim Buchanan
8/12/2007 1:33:10 PM >> select rt.orphan
8/12/2007 1:33:10 PM >> attrib -s
8/12/2007 1:33:10 PM Script Error: Incorrect parameters
8/12/2007 1:33:10 PM >> User Canceled
8/12/2007 1:33:10 PM Script completed in 2.03 seconds
Any ideas?
Thanks!
Here's my script:
load "G:\My Pictures\2006" "N:\My Pictures\2006"
expand all
criteria timestamp:1sec;IgnoreDST
folder-report title:"2006 Images" layout:side-by-side output-to:"C:\Documents and Settings\Tim Buchanan\My Documents\Backup Logs\20070812-133307-2006 Images-Report.html" options:display-mismatches output-options:html-color
log verbose "C:\Documents and Settings\Tim Buchanan\My Documents\Backup Logs\20070812-133307-2006 Images-BCLog.txt"
select rt.orphan
attrib -s
delete rt
sync create-empty mirror:lt->rt
This script dumps the following in the log:
8/12/2007 1:33:10 PM >> log verbose "C:\Documents and Settings\Tim Buchanan\My Documents\Backup Logs\20070812-133307-2006 Images-BCLog.txt"
8/12/2007 1:33:10 PM User name: Tim Buchanan
8/12/2007 1:33:10 PM >> select rt.orphan
8/12/2007 1:33:10 PM >> attrib -s
8/12/2007 1:33:10 PM Script Error: Incorrect parameters
8/12/2007 1:33:10 PM >> User Canceled
8/12/2007 1:33:10 PM Script completed in 2.03 seconds
Any ideas?
Thanks!
Comment