rsync not deleting file (which was hard linked)

Kevin Korb kmk at sanitarium.net
Sat Mar 2 13:55:47 MST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yep, using a wildcard in the command line lobotomizes rsync's --delete
function.  Use a trailing / instead.

On 03/02/13 15:52, Matthias Schniedermeyer wrote:
> On 02.03.2013 13:14, Eric Shubert wrote:
>> I have a situation that I think might be a bug, but would like 
>> someone else to have a look at before I create a report.
> 
> ...
> 
>> "$source"/* \
> 
> As far as i know rsync, this is your error.
> 
> Ignoring the current-directory you rsync a bunch of files. IIRC
> rsync doesn't delete files on the commandline, only files missing 
> in a directory.
> 
> Personally i nearly always sync complete directories. rsync -av
> source-dir/ target-dir/ (Notice the slashes at the end) That what
> is very easy to understand and works "unsurprising".
> 
> 
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	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/

iEYEARECAAYFAlEyZ1MACgkQVKC1jlbQAQf6OQCgo2pgQ7CxBqjAm7NxVCxC97cJ
dJUAn3PpzDaqme0oUCaQmttdtxWZS5i9
=ihzr
-----END PGP SIGNATURE-----


More information about the rsync mailing list