LinuxQuestions.org
Register a domain and help support LQ
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 10-10-2005, 08:54 PM   #1
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 763

Rep: Reputation: 36
rsync --delete question


This deletes files only in the DESTINATION right? I just want to make sure! My command is:

rsync -vrbu --delete ${mount_path} ${backup_dest}

Just want to make sure, since it has write access to both paths and I would not want a disaster that I only notice later on.
 
Old 10-10-2005, 09:38 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Yep, that deletes files on the receiving side that don't exist on the sending side
I use --delete-after but that's just my preference.

--delete delete files that don't exist on the sending side
--delete-before receiver deletes before transfer (default)
--delete-during receiver deletes during transfer, not before
--delete-after receiver deletes after transfer, not before
 
Old 10-10-2005, 09:55 PM   #3
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 763

Original Poster
Rep: Reputation: 36
Oh ok, so delete-after makes sure the transfer finished, I might want to go do that too then.
 
  


Reply


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
rsync question kpachopoulos Linux - General 3 07-15-2005 03:33 PM
Question about rsync bgriesi Linux - Networking 4 12-31-2004 08:19 AM
rsync error AND/OR dump question Sinope Linux - General 4 08-26-2004 05:57 PM
Another Rsync question phatboyz Linux - Networking 2 07-02-2004 08:46 AM
rsync question falco365 Programming 4 05-25-2003 09:24 AM


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

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