Simple folder sync

B

Bill W

Periodically during the day, I would like to copy the contents of a folder
(with subfolders) from one computer (source) to two other computers on a
home network. It's really nothing more than a simple sync of files because
the data in the folder is only changed by the source computer, but used by
the two other computers. I would like to schedule the sync to occur maybe 3
times per day. The job could run on the source and "push" the folder to the
other 2 computers or each computer could have their own job and pull the
folder. I would prefer the second solution because the source computer is
always on, but the other 2 computers may not be on all the time. I've
considered a simple DOS copy that could be scheduled to run at different
times during the day, but I'm quite rusty on setting up the .EXE file and
scheduling it to run. Does anyone have a suggestion as to how I might
accomplish this simple sync? The source computer is running XP and the
other 2 computers are running XP and Vista. Thank you.
 
P

Pegasus [MVP]

Bill W said:
Periodically during the day, I would like to copy the contents of a folder
(with subfolders) from one computer (source) to two other computers on a
home network. It's really nothing more than a simple sync of files
because the data in the folder is only changed by the source computer, but
used by the two other computers. I would like to schedule the sync to
occur maybe 3 times per day. The job could run on the source and "push"
the folder to the other 2 computers or each computer could have their own
job and pull the folder. I would prefer the second solution because the
source computer is always on, but the other 2 computers may not be on all
the time. I've considered a simple DOS copy that could be scheduled to
run at different times during the day, but I'm quite rusty on setting up
the .EXE file and scheduling it to run. Does anyone have a suggestion as
to how I might accomplish this simple sync? The source computer is
running XP and the other 2 computers are running XP and Vista. Thank you.

Copy the two lines of code below into the file "Sync.bat" in a suitable
folder on each of the two target PCs, then use the Task Scheduler on each of
these PCs to run Sync.bat three times each day.
@echo off
robocopy /s /np /r:1 /w:1 "\\SourcePC\SomeShare\SomeFolder"
"c:\SomeFolder\SomeSubfolder" *.* /log:"c:\Sync.txt"

Please note:
- You may have to create one or more shares on the source computer.
- The above code will *not* delete files that only exist in the target
folder.
- The code only copy new or modified files. It won't touch files on the
target machine that are more recent than on the source PC.
- You must test the code from a Command Prompt before scheduling it with the
Task Scheduler.
- You must examine the log file c:\Sync.txt the first few times to ensure
that the job works as it should.
- When scheduling the task you must use an account that has a non-blank
password.
- The account/password used for the scheduled task must match an
account/password on each of the other machines. The preferred technique is
to create a dedicated account called "Scheduler".
- You can download robocopy.exe from here:
http://www.microsoft.com/downloads/...69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en.
You should store it in the Windows or the System32 folder.
 
B

Bill W

Thank you for a very comprehensive and applicable reply. This is exactly
what I needed. Thank you again. I really appreciate it.
 
P

Pegasus [MVP]

Bill W said:
Thank you for a very comprehensive and applicable reply. This is exactly
what I needed. Thank you again. I really appreciate it.

Thanks for the feedback.
 
T

Terry R.

On 11/22/2009 1:30 PM On a whim, Bill W pounded out on the keyboard
Periodically during the day, I would like to copy the contents of a folder
(with subfolders) from one computer (source) to two other computers on a
home network. It's really nothing more than a simple sync of files because
the data in the folder is only changed by the source computer, but used by
the two other computers. I would like to schedule the sync to occur maybe 3
times per day. The job could run on the source and "push" the folder to the
other 2 computers or each computer could have their own job and pull the
folder. I would prefer the second solution because the source computer is
always on, but the other 2 computers may not be on all the time. I've
considered a simple DOS copy that could be scheduled to run at different
times during the day, but I'm quite rusty on setting up the .EXE file and
scheduling it to run. Does anyone have a suggestion as to how I might
accomplish this simple sync? The source computer is running XP and the
other 2 computers are running XP and Vista. Thank you.

Hi Bill,

I use a batch file to copy new and modified files from one hard drive to
another each evening also. About once a month I use a program called
Tarylynn to sync them. It's fast and free. Google it. No command line
unfortunately, but I only spend about two minutes in the GUI while it
does its work.


Terry R.
 
B

Bill W

Thank you, Terry. I appreciate the suggestion. I'll look into Tarylynn.
Thanks again.
 
T

Terry R.

On 11/24/2009 5:48 AM On a whim, Bill W pounded out on the keyboard
Thank you, Terry. I appreciate the suggestion. I'll look into Tarylynn.
Thanks again.


You're welcome Bill.


Terry R.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top