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-21-2008, 04:47 PM
Kenneth Jacker
 
Default Which --delete* to Use in 'rsync'

>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


I've always just used the first option (--delete).

Can anyone suggest when I might use one of the last two?

Thanks!
--
Prof Kenneth H Jacker khj@cs.appstate.edu
Computer Science Dept www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC 28608 USA


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-21-2008, 06:09 PM
Tammo Schuelke
 
Default Which --delete* to Use in 'rsync'

The during or after options should be a bit faster because rsync already knows what to delete and doesn't have to scan for changes, but especially after may cause problems if a directory changes into a file or the other way round. I don't know how rsync handles such cases, the option should probably be combined with force. Also, deleting the files before the transfer reduces the space required for the operation and reduces the risk of running out of space. On the other hand, if for some reason the transfer fails, you still have valid copies of the files on the receiving end. Just my thoughts on this.

> -----Original Message-----
> From: Kenneth Jacker [mailto:khj@cs.appstate.edu]
> Sent: Thursday, August 21, 2008 5:47 PM
> To: debian-user
> Subject: Which --delete* to Use in 'rsync'
>
> >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
>
>
> I've always just used the first option (--delete).
>
> Can anyone suggest when I might use one of the last two?
>
> Thanks!
> --
> Prof Kenneth H Jacker khj@cs.appstate.edu
> Computer Science Dept www.cs.appstate.edu/~khj
> Appalachian State Univ
> Boone, NC 28608 USA
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


--
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 08:54 PM.

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