Go Job Hunting at the LQ Job Marketplace
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 10-10-2005, 08:54 PM   #1
Red Squirrel
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 865

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
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 57
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
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 865

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


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