Need a bit of insight into rsync delete options

greenstar
Posts: 11
Joined: Mon Mar 09, 2009 7:30 pm
Location: Tennessee

Need a bit of insight into rsync delete options

Postby greenstar » Thu Jun 10, 2010 8:33 am

I'm hoping someone can help me sort out the difference between a few rsync options.

I was reading the rsync man pages to learn about the usage of the --delete option and noticed that there are several similar options.

For the following options, should I understand this to mean that the sending box handles the deleting?

1. --delete: delete extraneous files from dest dirs
*I understand this one*

2. --delete-excluded: also delete excluded files from dest dirs
*This one is easy enough to get*

3. --delete-delay: find deletions during, delete after
*Reasonably self-explanatory*

For the next 3 options, I understand that the receiving box handles the deleting. What I'm not sure of is what are the practical implications of the difference in effect that these options will have.

How will the result differ from one of these options to the other?

Is there any difference in effect or is it simply an ordering of tasks to allow control over the load that is placed on the initiating box?

4. --delete-before: receiver deletes before transfer (default)

5. --delete-during: receiver deletes during xfer, not before

6. --delete-after: receiver deletes after transfer, not before

Thanks for your time & assistance,
greenstar

Who is online

Users browsing this forum: No registered users and 29 guests