Re: rsync --delete isn't deleting files

2008-08-10 Thread Tiago Marques
I see, you're right :) Is there anything useful that can be donated to the rsync developers? Keep up the great work. Best regards, Tiago Marques On Sun, Aug 10, 2008 at 11:16 PM, Matt McCutchen <[EMAIL PROTECTED]> wrote: > On Sun, 2008-08-10 at 23:04 +0100, Tiago Marque

Re: rsync --delete isn't deleting files

2008-08-10 Thread Matt McCutchen
On Sun, 2008-08-10 at 23:04 +0100, Tiago Marques wrote: > It worked, --delete-excluded was all that was missing. > I really think this should be the implied behavior and would like to > see it as default, if there really isn't a good reason for it being > this way. The current behavior is useful i

Re: rsync --delete isn't deleting files

2008-08-10 Thread Tiago Marques
Thanks! It worked, --delete-excluded was all that was missing. I really think this should be the implied behavior and would like to see it as default, if there really isn't a good reason for it being this way. Best regards, Tiago Marques On Sun, Jul 13, 2008 at 6:26 P

Re: rsync --delete isn't deleting files

2008-07-13 Thread Matt McCutchen
Rsync 2.6.9 seems to think that the destination is already up to date. What do you expect it to do that it isn't doing? Update an existing file? (What are the size and mtime of that file and the corresponding source file?) Delete an extraneous file? (Note that you'll have to convert the exclude

Re: rsync --delete isn't deleting files

2008-07-12 Thread Matt McCutchen
On Sat, 2008-07-12 at 03:48 +0100, Tiago Marques wrote: > Hmm, looks like I'm not done with this, yet. > With rsync 3.02, it works fine: > > rsync --exclude='/*/' --delete-before -tvlpr > rsync://rsync.sabayonlinux.org/SabayonLinux/ /storage/mirrors/ > > But not with the 2.6.9 version :| > I just

Re: rsync --delete isn't deleting files

2008-07-11 Thread Tiago Marques
Hmm, looks like I'm not done with this, yet. With rsync 3.02, it works fine: rsync --exclude='/*/' --delete-before -tvlpr rsync://rsync.sabayonlinux.org/SabayonLinux/ /storage/mirrors/ But not with the 2.6.9 version :| I just get this, with the mirror completely outdated: receiving

Re: rsync --delete isn't deleting files

2008-07-11 Thread Tiago Marques
Indeed, that worked great for me! Big thanks to both for your time. Tiago Marques On 7/11/08, Matt McCutchen <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-11 at 13:01 -0700, Wayne Davison wrote: > > On Fri, Jul 11, 2008 at 04:22:04PM +0100, Tiago Marques wrote: > > > I was already

Re: rsync --delete isn't deleting files

2008-07-11 Thread Matt McCutchen
On Fri, 2008-07-11 at 13:01 -0700, Wayne Davison wrote: > On Fri, Jul 11, 2008 at 04:22:04PM +0100, Tiago Marques wrote: > > I was already using the -d option, it download the subdirs also. > > You also need to not use -r (e.g. either expand -a and omit -r, or > specify --no-r). -d will create th

Re: rsync --delete isn't deleting files

2008-07-11 Thread Wayne Davison
On Fri, Jul 11, 2008 at 04:22:04PM +0100, Tiago Marques wrote: > I was already using the -d option, it download the subdirs also. You also need to not use -r (e.g. either expand -a and omit -r, or specify --no-r). ..wayne.. -- Please use reply-all for most replies to avoid omitting the mailing l

Re: rsync --delete isn't deleting files

2008-07-11 Thread Tiago Marques
I was already using the -d option, it download the subdirs also. The --exclude option worked fine though, and --delete-before is now working very well. Tks to all! Best regards, Tiago Marques On Fri, Jul 4, 2008 at 11:18 PM, Wayne Davison <[EMAIL PROTECTED]> wrote: > On F

Re: rsync --delete isn't deleting files

2008-07-04 Thread Wayne Davison
On Fri, Jul 04, 2008 at 05:08:41PM -0400, Matt McCutchen wrote: > Use --recursive and then exclude the stuff you don't want, e.g., > --exclude='/*/' to exclude all subdirectories. You can also use -d (--dirs) instead of -r (--recursive). That makes rsync transfer just the contents of a specified

Re: rsync --delete isn't deleting files

2008-07-04 Thread Matt McCutchen
On Fri, 2008-07-04 at 20:11 +0100, Tiago Marques wrote: > In the past, since > --delete-before did nothing, I did a dry run and then parsed the > output to have it "rm" the files that were to be deleted. That so also > because the --delete needs the --recursive option, which for me is > very imprac

Re: rsync --delete isn't deleting files

2008-07-04 Thread Wayne Davison
On Fri, Jul 04, 2008 at 08:11:36PM +0100, Tiago Marques wrote: > rsync --delete-before -v -tvlpr > rsync://rsync.sabayonlinux.org/SabayonLinux/* ./ --dry-run Check out the manpage on the --delete option. The very first paragraph tells you why you shouldn't be using a wildcard (*) there: ht

Re: rsync --delete isn't deleting files

2008-07-04 Thread Tiago Marques
Inside the target dir, there is a file named "asdasdasd" which isn't deleted, nor mentioned to, since this is a dry-run. with: rsync --delete-before -v -tvlpr rsync://rsync.sabayonlinux.org/SabayonLinux/* ./ --dry-run i get: -

Re: rsync --delete isn't deleting files

2008-07-04 Thread Matt McCutchen
On Fri, 2008-07-04 at 16:13 +0100, Tiago Marques wrote: > I had this working on an older version, since 2.6.9 that when I set > --delete and --dry-run, I get no "Deleting **" lines. Be sure to pass -v because, since rsync 2.6.7, --dry-run no longer implies it: http://gitweb.samba.org/?p=rsync

rsync --delete isn't deleting files

2008-07-04 Thread Tiago Marques
I had this working on an older version, since 2.6.9 that when I set --delete and --dry-run, I get no "Deleting **" lines. Also, the --delete-before never worked for me. Working on a space constrained mirror, this has proven very handy, when it works. What's up with the new versions? I haven't c