On 02:07 22 Jun 2003, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
|    I'm using rsync with hard links to keep backups of my servers.  This 
| process creates a daily structure that looks like this:
| 
|    backup/daily.01
|          /daily.02
|          /daily.03
|          etc., etc.
| 
|    Now I know that only the first one contains actual files, while the 
| rest are all hard links to that first one.

How sure are you? Rsync on its own doesn't do that - you need to have
a separate pass that makes a link tree and then rsync that. Is that
your setup?

| When I run 'du' against that 
| directory structure, it tells me all of them have the same size.  Is 
| there some way of  getting the actual size of those other daily's? 
| Since most of their content is hard linked, with the exception of 
| changed files, I thought the sizes would be different.

Well, not. There is nothing special about a hard link - it's the same
file. There is no "real" file and a "link". Both names are links to
the file.

However, du normally notices links and reports space for the tree where
it first saw the link, so the subsequent trees should look "small".
_If_ it's a single "du" running over all the trees and not a separate
du for each tree (when of course each du knows nothing about the other
trees because it doesn't look at them).

A "df -k ." on your backup directory after each backup run will tell
you if you're copying everything fresh or making linked trees with
few differences.

My suspiscion is that unless you've neglected to mention some part of
your backup arrangements you're getting complete copies, not "incremental"
trees.

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

This bottle of whisky is awful.  I'll be glad when it's done.
        - One Scot to another


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to