With rsync --link-dest, is it possible to determine which files are new?

Kevin Korb kmk at sanitarium.net
Fri Oct 21 10:10:09 MDT 2011

Hash: SHA1

The simplest solution is to add --itemize-changes to your backup
parameters.  That way rsync will give you the list of what files it
modified as well as why it needed to modify them (note that if you use
- --verbose twice you will see the files that it doesn't touch which isn't
what you want).

If you want something you can run after the fact here is a tool I wrote
a while back that does a sort of diff across 2 --link-dest based backups:
It will also tell you what files were not included in the newer backup
which --itemize-changes will not since it doesn't actually --delete
anything.  The program is written in perl so it should be easy enough to
tweak it if it doesn't do exactly what you want.

On 10/21/11 11:11, Ido Magal wrote:
> Hi,
> I posted the following question on Stack Overflow and got no response.
> I'm hoping this list might provide some answers.
> http://stackoverflow.com/q/7629550/597864
> I'm using rsync --link-dest to differentially back up my computer every day.
> After each backup, I'd like to save out a log of the new/changed
> files and ignore the linked files. Is this possible? If so, how would I do it?
> TIA.

- -- 
	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.
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the rsync mailing list