Let me give and example. Let's say I have:
- initial backup - incremental backup 1 - incremental backup 2 - incremental backup 3 - incremental backup 4
These backups share common files via hard links. How much space does backup 2 take? Or, put another way, how much space will I recover if I delete backup 2?
Need a little more information to be sure, but you should be able to figure it out using the number of links each of the files has. (I missed the early posts, but I assume the initial backup is a copy of your disk, and not just hard links to those files)
Further assuming that incremental 3 is the difference of the initial, and not the previous incremental, you'd use this to find the files that are unique to that backup:
find /backup-root/incr3 -type f -links 1
And you might futher extend that to give you a byte count of the files:
find /backup-root/incr3 -type f -links 1 -printf '%s\n' | \ awk 'BEGIN { EST=0 } { EST=EST + $1 } END { print EST }'
If, however, you're doing incremental backups against the previous incremental, it's going to be more difficult to find out exactly what you want to know. It can be done, but I'd need more details to tell you how.
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list