rsync in conjunction with the --link-dest option does not output deleted files

Kevin Korb kmk at sanitarium.net
Tue Jan 8 05:23:45 MST 2013


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

This is correct.  Rsync isn't actually deleting anything therefore it
has nothing to report.  It just isn't making a new link.

If you really want to see deletes you can revert to the old method
that was used before --link-dest where you cp -al the old backup to
the new backup then rsync with --delete but not --link-dest on top of
the tree full of links.  The end result will be the same as
- --link-dest with the verbosity you are asking for though it will take
longer.

On 01/08/13 06:53, Maik Meier wrote:
> 
> But I thought rsync tells me all modifications from "source" to 
> "backup_new". I just want to write this information into a
> log-file. I know that the file, that is deleted in "source" is not
> deleted physically after rsyncing, because it still exists in
> backup_old. But the interesting information to me would be: what
> has changed from "source" to "backup_new"? It seems that rsync does
> not output this information. Is the only solution to write a own
> script which compares "source" and "backup_old" to determine the
> deleted files before rsyncing? I am wondering about this.
> 
> 
> 
> 
> 
> ------- Original Message from Matthias Schniedermeyer -------
>> On 08.01.2013 12:23, Maik Meier wrote:
>>> Hi,
>>> 
>>> I want to use rsync to make daily backups using hard-links in
>>> this way:
>>> 
>>> rsync -av --delete --link-dest=../backup_old ./source/.
>>> ./backup_new
>>> 
>>> Does someone know if this a bug, or ist this intended to be or
>>> am I wrong somethere?
>> I would think it is intented.
>> 
>> Technically you don't have anything to delete as you are creating
>>  something new and a "deleted" file just means that you don't
>> have to link or copy it.
>> 
>> 
>> 
>> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	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 undefined - http://www.enigmail.net/

iEYEARECAAYFAlDsD9EACgkQVKC1jlbQAQdy6wCgwUr+y9G68G8/FU0iGvd/uqeq
hH0AoJ0KHFVkPu3MUUuJJ+VxgL0x8XMM
=tXRk
-----END PGP SIGNATURE-----


More information about the rsync mailing list