Download your favorite Linux distribution at LQ ISO.
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, 08:33 PM   #1
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 554

Rep: Reputation: 36
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, 11:25 PM   #2
LQ Newbie
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
use --ignore-existing
Old 12-17-2012, 11:56 PM   #3
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 554

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

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 08:41 PM
cp -u copies old files that already exist in the destination directory terence Linux - General 3 11-08-2012 05:07 PM
RSYNC Help - Copy Only Changed Files to New Directory euphoricrhino Linux - Software 1 11-23-2011 04:29 PM
Rsync deleting files from destination directory Russell P Linux - Newbie 2 07-14-2011 12:07 PM
rsync syntax to skip directory, but copy select files.. tnicol Linux - Software 3 07-24-2007 06:40 AM

All times are GMT -5. The time now is 04:53 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