Networking Forums

Networking Forums > Computer Networking > Linux Networking > rsync *only* files with no namesake on the destination

Reply
Thread Tools Display Modes

rsync *only* files with no namesake on the destination

 
 
dmorgan1
Guest
Posts: n/a

 
      06-24-2005, 09:15 PM


Is there some technique that's sort of the opposite of rsync's
"--existing" option? I want to copy from one linux installation to
another *only* the files from the first that are nonexistent on the
second

If a file /aaa/bbb/ccc exists on both, then I don't want the one on
the destination to get overwritten by the one on the source,
regardless of their sizes or timestamps. Existence under the identical
name should be enough to immunize the destination file from getting
clobbered by its namesake from the source.

My objective is to capture and transfer only those files (by filename)
that the source has and the destination does not. The destination is a
virgin installation of Fedora 4. The source is a tired old
installation of RedHat8 on which over years I've created a lot of
personal stuff (thousands of files). I want to transfer as much of
that stuff to the new system by automatic means as I can. While making
sure the Fedora fileset doesn't get contaminated by files of the same
name from the old system (eg, they both contain a file called
/etc/passwd and I don't want the new one molested just because there's
another bearing the same name on the old system).

These are both single-partition linux installations, on separate hard
disks. The drives are currently in two networked computers but could
be nfs-mounted or physically placed in a single computer to enable
local commands like cp or find/exec if they help. I've been looking at
rsync so far but don't see my solution-- "update" comes close. It says
"don't overwrite newer files" of the same name. But I want "don't
overwrite any..." How to accomplish this?
 
Reply With Quote
 
 
 
 
Chris Richmond - MD6-FDC ~
Guest
Posts: n/a

 
      06-24-2005, 11:50 PM
In article <(E-Mail Removed)>,
dmorgan1 <dmorgan-with-suffixed-"1"-ATdslextreme.com> writes:
>
>
>Is there some technique that's sort of the opposite of rsync's
>"--existing" option? I want to copy from one linux installation to
>another *only* the files from the first that are nonexistent on the
>second


From rsync -h:

-u, --update update only (don't overwrite newer files)
--ignore-existing ignore files that already exist on the receiving side

--
Chris Richmond | I don't speak for Intel & vise versa

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclusion of files in rsync with or without wildcards? Matthew Lincoln Linux Networking 3 06-06-2008 10:55 AM
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
How to let rsync only copy over the directories on destination side? linq936@hotmail.com Linux Networking 1 06-08-2007 10:34 AM
rsync says some files can not be transferred linq936@hotmail.com Linux Networking 1 09-28-2006 09:32 PM
RSync: move 'deleted' files to a specific folder Vincent Lascaux Linux Networking 2 09-11-2006 12:59 PM



1 2 3 4 5 6 7 8 9 10 11