Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-17-2012, 07:33 PM   #1
Registered: Oct 2003
Location: Canada
Posts: 699

Rep: Reputation: 47
Post Rsync - Only copy files that do not exist at the destination directory?

Hey LQ,

I can't seem to figure out what combination of switches will get Rsync to only copy files from a source dir to a destination dir if that file DOES NOT exist at the destination. In other words I do not want to overwrite any files on the destination, even if they are older.

Any ideas?
Old 12-17-2012, 10:25 PM   #2
LQ Newbie
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
use --ignore-existing
Old 12-17-2012, 10:56 PM   #3
Registered: Oct 2003
Location: Canada
Posts: 699

Original Poster
Rep: Reputation: 47
Of course! Thank you
Old 03-02-2014, 05:30 PM   #4
LQ Newbie
Registered: Oct 2011
Posts: 22

Rep: Reputation: Disabled
cp (copy command) is a better command to do what you want

sudo cp -vn /xxx/* /yyy

xxx = from directory
yyy = to directory

-vn = verbose , no clobber


insert only, no overwrite, rsync, skip overwrite

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Files seem to take up more space in destination after rsync copy Karderio Linux - Newbie 6 09-22-2014 07:41 PM
cp -u copies old files that already exist in the destination directory terence Linux - General 3 11-08-2012 04:07 PM
RSYNC Help - Copy Only Changed Files to New Directory euphoricrhino Linux - Software 1 11-23-2011 03:29 PM
Rsync deleting files from destination directory Russell P Linux - Newbie 2 07-14-2011 11:07 AM
rsync syntax to skip directory, but copy select files.. tnicol Linux - Software 3 07-24-2007 05:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration