[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copying only files that are not into the destination




On Dec 24, 2009, at 12:32 PM, Merciadri Luca wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have two folders, say .../source/ and .../destination/.

There are many files in /source/ and in /destination/. There are some
more files in /source/. There are so many files in /source/ that I
cannot check the ones that are not in /destination/ by myself.
I want the files of /source/ which are not in /destination/ to be
copied in /destination/. Using cp -i is not a good idea, as there
could be something like ~5000 files which are not in /destination/,
but which are in /source/.

Take a look at "man rsync"  It should do exactly what you want.

Rick


Reply to: