LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-17-2012, 07:33 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 453

Rep: Reputation: 34
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
jarro_2783
LQ Newbie
 
Registered: Jul 2006
Posts: 11

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

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

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
 
  


Reply

Tags
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


All times are GMT -5. The time now is 04:38 PM.

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