On 21.07.2010 10:22, Kevin Murray wrote:
> Hi Henri
> 
> Thanks very much. LBackup looks good, but i need a solution which only
> copies files which have changed, and does not link the others, as the
> folder is destined for a tar archive. Also, the copied files must be
> fully functional, i.e. must be whole files, not just differences like
> rdiff. this is why im using rsync.
> 
> Using checksum works, however with over 600gb to backup it is not a
> viable option.

That's easy:

rsync with --link-dest so that all files that aren't changed are 
hardlinked.

Then to 'tar' all changed or new files you want a list of files without 
hardlinks as those are the files that where changed or new(*):
find <dir> -type f -links 1 > files.lst
tar <options> --files-from=files.lst




*:
I'm assuming hardlinks aren't used within the source-directory. 
Otherwise find would skip those files too as they would also have more 
than 1 link.

Also symlinks and special-files are excluded by the example.


Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to