The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash rsync but move not delete Movomito Shell Programming and Scripting 1 04-30-2008 04:37 PM
rsync vs cp jsy UNIX for Dummies Questions & Answers 1 03-24-2008 04:51 PM
option followed by : taking next option if argument missing with getopts gurukottur Shell Programming and Scripting 2 03-17-2008 12:46 PM
rsync with the --delete option. sallender UNIX for Advanced & Expert Users 2 10-21-2005 11:55 AM
sed option to delete two words within a file klannon UNIX for Dummies Questions & Answers 4 04-15-2002 07:25 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-19-2005
sallender sallender is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 12
rsync with the --delete option

Tell me this - set me straight!

the --delete option says "delete files that don't exist on the sending side"

Does this mean and only mean that it will delete files from the DESTINATION that DON'T EXIST on the sending side?
  #2 (permalink)  
Old 10-22-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
Imagine this case.....


source: one.txt two.txt three.txt
destination: zero.txt one.txt

Rsync might need to freshen up one.txt. And it certainly needs to copy two.txt and three.txt. But this leaves the destination with an extra file --- zero.txt. So the destination is not really a perfect copy of the source. --delete says that zero.txt should be deleted.

And yes it will only be deleted from the destination. (Were you afraid that it might be deleted from the source? )
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 04:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0