Page 1 of 1 1
Topic Options
#33235 - 2002-11-22 05:03 PM curious (how automated sync between two machine at logon?)
nephilim Offline
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
#33236 - 2002-11-22 05:04 PM Re: curious (how automated sync between two machine at logon?)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Type
code:
xcopy /?

at the command prompt and take a look at the /D parameter.

[ 22. November 2002, 17:05: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#33237 - 2002-11-22 05:06 PM Re: curious (how automated sync between two machine at logon?)
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Look at the RK util, ROBOCOPY.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33238 - 2002-11-22 05:08 PM Re: curious (how automated sync between two machine at logon?)
Howard Bullock Offline
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33239 - 2002-11-22 06:34 PM Re: curious (how automated sync between two machine at logon?)
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I would probably use Robocopy for NT/2000/XP & XXCOPY for Win9x but there have been several pure kix solutions posted & discussed in the past. Try checking out the UDF forum (or better still use Howard's link above). It may contain components of the solution you need.

[ 22. November 2002, 18:36: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#33240 - 2002-11-22 06:49 PM Re: curious (how automated sync between two machine at logon?)
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Maybe I'm missing something but doesn't XCOPY only work in one direction? If a file is deleted, the deletion won't be replicated, meaning the replica will still have the file.

ROBOCOPY will delete the replica as well.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33241 - 2002-11-22 06:58 PM Re: curious (how automated sync between two machine at logon?)
Howard Bullock Offline
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33242 - 2002-11-22 07:38 PM Re: curious (how automated sync between two machine at logon?)
nephilim Offline
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 Offline
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.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#33244 - 2002-12-08 11:58 PM Re: curious (how automated sync between two machine at logon?)
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
MCA,
You are more than welcome to compose such a FAQ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33245 - 2002-12-08 11:59 PM Re: curious (how automated sync between two machine at logon?)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
[Wink]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.063 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org