I notice that the Beyond Compare documentation says that the "sync mirror" script command "does not use the current selection" which begs the question: how exactly is "sync mirror" used if it does not use the current selection? I have included the command "sync mirror:lt->rt" in a script that seems to perform a successful file comparison but fails to execute the desired synchronization. In the "Automating a Synchronization" tutorial example, however, the "sync mirror:lt->rt" command is implemented without requiring any additional switches. So what am I overlooking?
Announcement
Collapse
No announcement yet.
sync mirror command fails
Collapse
X
-
Re: sync mirror command fails
"does not use the current selection" means it is not affected by the "select" command. If you use the copy command in a script, it only affects the currently selected files/folders.
The sync command operates on all files/folders, so it will affect everything in the loaded folders.
The command "sync mirror:lt->rt" will make the right side folder identical to the right. This includes deleting files that only exist on the right. BC will only copy files that it sees as different or orphan according to the current comparison criteria. If some files with different timestamps aren't being synced, try adding "criteria timestamp size" before the load command in your script.
Example:
criteria timestamp size
load c:\source c:\target
sync mirror:lt->rtChris K Scooter Software
-
Re: sync mirror command fails
Sorry, still no good. Here's the script. According to the log, it runs as scheduled and generates a "Script completed" message, but nothing appears to actually be synchronizing.
log normal "BCLog.log"
criteria timestamp size
filter "-thumbs.*;-~*.*;-old\;-old versions\;-old drafts\;*.lnk"
load "J:\source\" "\\COAST\Target\"
expand all
option confirm:yes-to-all
sync mirror:lt->rt
Comment
-
Re: sync mirror command fails
It looks like the problem is your filter command. It will only sync *.lnk files as listed:
filter "-thumbs.*;-~*.*;-old\;-old versions\;-old drafts\;*.lnk"
If you're trying to filter out *.lnk files, this should work instead:
filter "-thumbs.*;-~*.*;-old\;-old versions\;-old drafts\;-*.lnk"Chris K Scooter Software
Comment
Comment