FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-22-2008, 01:45 AM
Tzafrir Cohen
 
Default Which --delete* to Use in 'rsync'

On Thu, Aug 21, 2008 at 11:47:29AM -0400, Kenneth Jacker wrote:
> >From rsync(1):
>
> --delete delete extraneous files from dest dirs
> --delete-before receiver deletes before transfer (default)
>
> --delete-during receiver deletes during xfer, not before
> --delete-after receiver deletes after transfer, not before
>

--delete is --delete-after . --del is --delete-during .

Originally there were only --delete-before and --delete-after . Thus the
"default" (--delete) became --delete-after as it is the safer of the
two.

--delete-during was added later on. It is normally the one you'd like to
use. To make it easier (but still not brak semantics), they added the
option --del that means --delete-during .

Unless the server is too old to support --delete-during , just use --del .
If it is too old, you'll simply get a syntax error message saying so.

--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 03:05 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org