rsync --delete isn't deleting files

Tiago Marques tiagomnm at gmail.com
Fri Jul 4 19:11:36 GMT 2008


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:
--------------------------------------------------------------------------------

opening tcp connection to rsync.sabayonlinux.org port 873
sending daemon args: --server --sender -vvnltpre.L . "SabayonLinux/*"
receiving file list ...
done
deleting in entropy
delta-transmission enabled
Sabayon-Linux-x86-3.5.iso
Sabayon-Linux-x86-3.5.iso.md5
Sabayon-Linux-x86_64-3.5.iso
Sabayon-Linux-x86_64-3.5.iso.md5
SabayonLinux-x86-3.4.miniEdition.iso
SabayonLinux-x86-3.4.miniEdition.iso.md5
SabayonLinux-x86_64-3.4.miniEdition.iso
SabayonLinux-x86_64-3.4.miniEdition.iso.md5
entropy/
entropy/standard/
entropy/standard/jenna/
entropy/standard/jenna/database/
entropy/standard/jenna/database/amd64/
entropy/standard/jenna/database/amd64/make.conf
entropy/standard/jenna/database/amd64/package.keywords
entropy/standard/jenna/database/amd64/package.mask
entropy/standard/jenna/database/amd64/package.unmask
entropy/standard/jenna/database/amd64/package.use
....................................................
entropy/standard/sabayonlinux.org/packages/x86/3.5/xwininfo-1.0.3.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/xwud-1.0.1.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/xwud-1.0.1.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/xxkb-1.10.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/xxkb-1.10.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/yacc-1.9.1-r3.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/yacc-1.9.1-r3.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/yasm-0.6.2.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/yasm-0.6.2.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/zd1211-firmware-1.4.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/zd1211-firmware-1.4.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/zopeinterface-3.0.1-r1.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/zopeinterface-3.0.1-r1.tbz2.md5
entropy/standard/sabayonlinux.org/packages/x86/3.5/zvbi-0.2.22.tbz2
entropy/standard/sabayonlinux.org/packages/x86/3.5/zvbi-0.2.22.tbz2.md5

sent 187147 bytes  received 1564186 bytes  166793.62 bytes/sec
total size is 50338148416  speedup is 28742.76 (DRY RUN)

------------------------------------------------------------------------------------------------------


>From my understanding, the --delete-before should delete the files
that aren't present in the mirror anymore, before it starts to
download, right? That has never happenned for me, when I began using
Ubuntu 6.06, it's still the same as of now or, as I've said, worse.
Due to the space constraints that I've already mentioned, I need to
delete the old files before pulling the new ones. 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 impractical. For this Sabayon mirror, I only pretend to mirror
the images in the root directory and needing the --recursive is not
good for me. The packages would require me space that I cannot afford.

Best regards,
                             Tiago Marques


On 7/4/08, Matt McCutchen <matt at mattmccutchen.net> wrote:
> 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.git;a=blob;f=OLDNEWS;h=af1e59e10eb012c4910237f6e62bfc99811d9a48;hb=HEAD#l972
>
>  If that isn't the problem, please post your rsync command line and the
>  paths of the files that should be reported as "deleting" but aren't.
>
>
>  > Also, the
>  > --delete-before never worked for me.
>
>
> In what way did --delete-before not work?  Please post your command line
>  and any error messages you got.
>
>
>  Matt
>
>


More information about the rsync mailing list