[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Plan for the next few versions
From: |
dean gaudet |
Subject: |
Re: [rdiff-backup-users] Plan for the next few versions |
Date: |
Wed, 5 Mar 2003 01:00:05 -0800 (PST) |
> So if something important is missing in 0.11.2, please tell me.
>For instance I vaguely remember Dean Gaudet saying something about
>statistics (maybe I should look that up..).
yeah -- see below. i was wondering if rather than generating directory
statistics if you could log out per-file statistics then it would
be trivial to post-process into whatever shape desired.
-dean
Date: Thu, 2 Jan 2003 10:10:34 -0800 (PST)
From: dean gaudet <address@hidden>
To: Ben Escoto <address@hidden>
Cc: address@hidden
Subject: Re: [rdiff-backup-users] Version 0.11.1 released
> Directory statistics file: Although the session statistics file is
> still generated, the directory statistics file no longer is,
> because the new code structure makes it less inconvenient.
this is kind of unfortunate... i use the directory_statistics file to see
what portions of my filesystem are changing the most.
since i have to do post-processing on the dir stats file anyhow (i.e.
sorting) it's no problem for me to collect the data from an even larger
raw file than i process currently.
prior to the built-in dir stats i was using a find, but the find takes a
long time :) and find methods also make it more of a pain to discover the
NewFileSize statistics.
would you consider adding a --file-stats option maybe, which logs the
stats on a per-filename basis? something like:
# RelativeFileName NewFileSize DeletedFileSize IncrementFileSize
where only one of those three numbers are non-zero... that's certainly
enough to recreate the data which i currently view daily.
-dean
p.s. this is all i currently do at the end of my backups:
dirstat="`ls -1tr root/rdiff-backup-data/directory_statistics.* | tail -1`"
echo ""
echo "NewFileSize over 5MB:"
zcat $dirstat | awk '!/^#/ && $7 >= 5000000 { printf "%15u %s\n", $7, $1 }' \
| sort -nr
echo ""
echo "IncrementFileSize over 5MB:"
zcat $dirstat | awk '!/^#/ && $14 >= 5000000 { printf "%15u %s\n", $14, $1 }' \
| sort -nr