LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08:33 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 924

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

Rep: Reputation: 0
use --ignore-existing
 
Old 12-17-2012, 11:56 PM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 924

Original Poster
Rep: Reputation: 61
Of course! Thank you
 
Old 03-02-2014, 06:30 PM   #4
pouldney
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
 
  


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration