Synchronizing Directories with XXCopy

  • Thread starter Thread starter Cliff
  • Start date Start date
C

Cliff

I know it's probably easy, but this program has SO MANY options it's mind
boggling.

I have two pc's that each have a folder named \music. I would like to synch
up c:\music to s:\music including subfolders. I don't want anything
deleted, but I would like older files overwritten by newer files. It
doesn't have to be a single xxcopy command, but it would be nice.

Can anyone out there help me with this please? Thanks in advance.
 
I know it's probably easy, but this program has SO MANY options it's mind
boggling.

You got that right! But that is a good thing after making the curve.
And once you have the right command you can write it in a batch file
and easily execute it.
I have two pc's that each have a folder named \music. I would like to synch
up c:\music to s:\music including subfolders. I don't want anything
deleted, but I would like older files overwritten by newer files. It
doesn't have to be a single xxcopy command, but it would be nice.

This is the "cookbook" page where many examples can be found:

http://www.xxcopy.com/xxcopy11.htm

It looks to me like the first example will work for you:

-----------------------------------------------------------------------------------------------------

XXCOPY C:\Music F:\Music /Y /BI /S

/Y Suppresses the Y/N/A prompt for a file overwrite
/BI Backs up incrementally (skips file with same size/time)
/S Copies directories and subdirectories except empty ones.

-----------------------------------------------------------------------------------------------------

XXCOPY C:\Music F:\Music /CLONE /Z0

The /Z0 switch after /CLONE will negate the /ZY switch which
is declared within the super /CLONE switch. This command
will leave any additional files and directory in the destination
untouched.

Note that if any opposing or mutually exclusive switches exist
on a command line, they are interpreted from left to right.
Therefore, if you place /Z0 before /CLONE, the effect of /Z0
will be lost.
-----------------------------------------------------------------------------------------------------

The above appears to do what you want, but it will probably
unnecessarily overwrite identical files. I added the /BI below to skip
identical files (hoping that this switch will be honored with the
clone switch) .

XXCOPY C:\Music F:\Music /CLONE /Z0 /BI
 
Cliff said:
I know it's probably easy, but this program has SO MANY options it's mind
boggling.

I have two pc's that each have a folder named \music. I would like to synch
up c:\music to s:\music including subfolders. I don't want anything
deleted, but I would like older files overwritten by newer files. It
doesn't have to be a single xxcopy command, but it would be nice.

Can anyone out there help me with this please? Thanks in advance.

It seems that more experienced XXCOPY users hang around the
XXCOPY discussion group than in this newsgroup.

You will have better chance getting good advice at the forum.

http://groups.yahoo.com/group/xxcopy/

If you have a fairly common problem (like this one), you may
use the keyword search at the XXCOPY web page. Near the top
of the main page, http://www.xxcopy.com, you will find a box

XXCOPY SelfHelp with Keyword: _______ [ Search Archive ]

Just enter your keyword, "synchronize" and click the button,
and you will find more than 20 messages on the subject.

More specifically, the following page shows my message
that I recently posted.

http://groups.yahoo.com/group/xxcopy/message/6137

To be more direct:

create a batch file

mysync.bat
------------------------------------------
XXCOPY \dir1\ \dir2\ /backup/bn
XXCOPY \dir2\ \dir1\ /backup/bn
------------------------------------------

/backup/bn is the same as /KS/H/E/R/Q/Y/BN
Here, the /BN switch selects only files that
are newer and copy them into the destination.
You run it in both directions. It takes care
of subdirectories, hidden/system files, preserves
the file attributes even with read-only attributes
and overwrites read-only files also.

BTW, we receive many requests to make this two-step
procedure into one command. We find such a method
will severely restrict the flexibility. Keeping it
in two step process, it retains all the power of
XXCOPY which is mostly due to its ability to combine
many switches.

Kan Yabumoto
 
Cliff said:
I know it's probably easy, but this program has SO MANY options it's
mind boggling.

I have two pc's that each have a folder named \music. I would like to
synch up c:\music to s:\music including subfolders. I don't want
anything deleted, but I would like older files overwritten by newer
files. It doesn't have to be a single xxcopy command, but it would be
nice.

Can anyone out there help me with this please? Thanks in advance.

Thanks to you and Ken for a quick and useful reply. I checked out the
newsgroup, and it looks like xxcopy is a solution waiting for a problem. My
problem of the moment is solved - thanks to both of you!

Cheers!
 
Cliff said:
it looks like xxcopy is a solution waiting for a problem.

Eh, I don't think you meant to sound quite the way that came off.
Cliff, XXCopy is the best thing since ice cream for backing up a hard
drive if you have more than one partition or a second hard drive. Yes,
it does anticipate problems that you may not have, but that's because
Ken has evolved the program in response to other people's requests and
needs. The documentation for the program is second to none and Ken
frequents this group. Also, there is that forum that he mentioned in
his reply.
 
John Corliss said:
Eh, I don't think you meant to sound quite the way that came off.
Cliff, XXCopy is the best thing since ice cream for backing up a hard
drive if you have more than one partition or a second hard drive. Yes,
it does anticipate problems that you may not have, but that's because
Ken has evolved the program in response to other people's requests and
needs. The documentation for the program is second to none and Ken
frequents this group. Also, there is that forum that he mentioned in
his reply.

I actually stole the phrase from a news story many years that was
describing the laser. "A solution looking for a problem". Basically it
means something with so much power you cannot see all the possibilities
at first look. It certainly isn't meant as a slam...NOT IN THE LEAST.

Sorry if you misread my post, it was meant as a compliment. (I remember
once telling a girl "what a sight for sore eyes she was" and she took it
as an insult).
Thanks again for the help...I will attempt to slowly learn the power of
this great program!
 
Cliff said:
Thanks to you and Ken for a quick and useful reply. I checked
out the newsgroup, and it looks like xxcopy is a solution
waiting for a problem. My problem of the moment is solved -
thanks to both of you!

Cheers!



John Corliss said:
Eh, I don't think you meant to sound quite the way that came
off. Cliff, XXCopy is the best thing since ice cream for backing
up a hard drive if you have more than one partition or a second
hard drive. Yes, it does anticipate problems that you may not
have, but that's because Ken has evolved the program in response
to other people's requests and needs. The documentation for the
program is second to none and Ken frequents this group. Also,
there is that forum that he mentioned in his reply.


Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

Yes, it does anticipate problems that you may not have, but that's because Ken
has evolved...

anticipate problems that you may not have

anticipate problems that you may not have

anticipate problems that you may not have

anticipate problems that you may not have

anticipate problems that you may not have


So WTF was your point, Corliss-tard?

(can YOU say "oxymoronic"?)

(ok, then say "moron" - because you ARE one!)
 
Basically an excellent example of the inherent weaknesses of written text
over spoken word. A simple, unintended miscommunication. No harm intended,
no harm taken.

Merry Christmas!
 
Back
Top