Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-21 Thread Tim Edwards
Matt McCutchen schrieb: Thanks for the help but I've still had no luck with this. The command now looks like: backupstoremove.py | rsync -av --progress --no-p --no-g --delete-before --stats --include-from=- --include=/media/300GIGHD/backups/dar/restore --exclude="*.dar" /media/300GIGHD/backup

Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-20 Thread Matt McCutchen
On Mon, 2009-07-20 at 23:24 +0200, Tim Edwards wrote: > Matt McCutchen schrieb: > > > > No, rsync will only do that if if you have it > > "synchronize" /USBstick/backups/dir , i.e., specify a source directory > > that maps to it. Just copying several dirs _into_ /USBstick/backups/dir > > does not

Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-20 Thread Tim Edwards
Matt McCutchen schrieb: No, rsync will only do that if if you have it "synchronize" /USBstick/backups/dir , i.e., specify a source directory that maps to it. Just copying several dirs _into_ /USBstick/backups/dir does not do the trick. See the description of --delete in the man page. Someth

Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-14 Thread Matt McCutchen
On Tue, 2009-07-14 at 13:01 +0200, Tim Edwards wrote: > I have a script transferring some backup files onto a USB stick, which > has limited space. I use rsync 3.0.5 with the following command: > rsync -av --delete-before /local/backups/dir/backup1_todaysdate > /local/backups/dir/backup2_todaysdat

Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-14 Thread David Brown
Apologies, I think I'm wrong about my previous reply, just checked and --delete is "implied"... You need to use --delete instead of just the --delete-before. You do not actually need the "before" bit as this is the default for -- delete. -david On 14 Jul 2009, at 12:01, Tim Edwards wrote:

Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-14 Thread Matthias Schniedermeyer
On 14.07.2009 13:01, Tim Edwards wrote: > I have a script transferring some backup files onto a USB stick, which > has limited space. I use rsync 3.0.5 with the following command: > rsync -av --delete-before /local/backups/dir/backup1_todaysdate > /local/backups/dir/backup2_todaysdate > /local/back

Re: --delete-before doesn't seem to actually be deleting before transfer

2009-07-14 Thread David Brown
You need to use --delete instead of just the --delete-before. You do not actually need the "before" bit as this is the default for --delete. -david On 14 Jul 2009, at 12:01, Tim Edwards wrote: I have a script transferring some backup files onto a USB stick, which has limited space. I use rsy

--delete-before doesn't seem to actually be deleting before transfer

2009-07-14 Thread Tim Edwards
I have a script transferring some backup files onto a USB stick, which has limited space. I use rsync 3.0.5 with the following command: rsync -av --delete-before /local/backups/dir/backup1_todaysdate /local/backups/dir/backup2_todaysdate /local/backups/dir/backup3_todaysdate /USBstick/backups/dir