#33235 - 2002-11-22 05:03 PM
curious (how automated sync between two machine at logon?)
|
nephilim
Fresh Scripter
Registered: 2001-12-07
Posts: 17
|
the hypothetical scenario:
machine x and machine y have the same directory structure (for argument's sake; the directory contains 20 subdirs, which may or may not contain sub-subdirs, etc).
machine y is used as an everyday machine, making changes frequently to the materials contained within the dir structure. machine x is treated as a repository- a safe file server of sorts to keep copies of the materials within the dir.
how would you recommended constructing an automated sync at logon using kix (and other small utilites if necessary) so that every dir and subdir were examined at logon- and only the latest (newest, most recent that is) files were transfered from machine y to machine x?
(MCA: extend subject) [ 08. December 2002, 23:46: Message edited by: MCA ]
|
Top
|
|
|
|
#33238 - 2002-11-22 05:08 PM
Re: curious (how automated sync between two machine at logon?)
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
The simplest solution would be to use "XCOPY /D /E", but that is could fail is the client date/time were to be set backward somehow.
|
Top
|
|
|
|
#33241 - 2002-11-22 06:58 PM
Re: curious (how automated sync between two machine at logon?)
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Yes Les you are correct. XCOPY does not remove files from the destination like Robocopy's /Mirror switch.
But quick and dirty XCOPY...gives you the added benefit of backup when the user accidentally deletes something and does not know it for two days.
Personally if I want to sync, I probably would configure the OS to do that since it is now a feature.
|
Top
|
|
|
|
#33242 - 2002-11-22 07:38 PM
Re: curious (how automated sync between two machine at logon?)
|
nephilim
Fresh Scripter
Registered: 2001-12-07
Posts: 17
|
great thoughts everyone. thanks.
as everyone has collectively stated, i've seen 3 possible solutions:
xcopy robocpy OS native
personally, i am partial to the first two...for my taste, they are less cumbersome and feel more flexible. However, I will check out Howard and Jack's suggestion to peruse the UDF as well. Nice to see that everyone has different ways of doing the same things- great to collect all the options first than figure out what works best for the given scenario.
thanks again everyone. and other comments/thoughts are welcome. i'll post my end solution soon.
|
Top
|
|
|
|
#33243 - 2002-12-08 11:44 PM
Re: curious (how automated sync between two machine at logon?)
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear kdyer, lligetfa,
Possible it can be very interesting to create a FAQ item, which handles about - copying files and directories - copying it with or without rights - copying only files which already exist - copying only the files of last seven days
We are thinking about the different commands like - XCOPY - XXCOPY - ROBOCOPY greetings.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 557 anonymous users online.
|
|
|