rsync --delete not working (no wildcards)
kmk at sanitarium.net
Mon Jan 28 15:45:39 MST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Is there any output? How about with an additional -v ?
Is there a .rsync-filter file anywhere?
On 01/28/13 17:02, Stewart Jeacocke wrote:
> I'm trying to copy some directories with rsync and would like to
> delete files from the destination if they no longer exist in the
> I'm using the following command:
> rsync -v --archive --hard-links --delete --force
> --filter=':/.rsync-filter' /opt/ /mnt/backup/opt/
> /opt does not contain any files the destination contains one file
> stewart at attobeast:/etc$ ls /mnt/backup/opt/ test-file
> after running the rsync command I would expect test-file to have
> been deleted but it isn't. I'm sure I'm missing something obvious
> in the man page that explains this behaviour but I can't figure it
> out. Can anyone enlighten me?
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the rsync