PDA

View Full Version : Example Script File


17-Sep-2004, 09:49 AM
Can someone post an example script that I can use to synch a directory on my local machine to a copy of that directory on a server? I need to have all subdirectories created a dn synched as well. Thanks. :(

Chris
17-Sep-2004, 11:10 AM
Here's a minimal script to sync two folders and all their subdirectories.

load c:\desktop \\server\share
sync update:lt->rt

If you want to make the two sides identical (deleting files that only exist on the target, copying older files from the source over newer files on the target)
load c:\desktop \\server\share
sync mirror:lt->rt

You can run them using the syntax:
bc2 @script.txt

Let us know if you have any problems.