Koozali.org: home of the SME Server

Size of modified files

Trevor Drake-Brockman

Size of modified files
« on: February 03, 2003, 10:23:23 AM »
Using SME 5.5 hoping there is some way of finding the size of the files that have been modified since the last backup.

Is there some utility program that will calculate the total size of all files that have been changed since the last full backup to tape.  I need to calculate the average size in KB of the files that are being changed on the server.  This will help me decide if I can use rsyc to do a second backup over the net.

Ray Mitchell

Re: Size of modified files
« Reply #1 on: February 04, 2003, 05:04:13 AM »
Trevor
At the command prompt do df -h on the day a backup is done, and then do df -h again when the next backup is due.

Compare the two readings and the difference is the total increase in your data file size (assuming other changes have not been made to the server config etc).

Hope this helps
Regards
Ray Mitchell

Trevor Drake-Brockman

Re: Size of modified files
« Reply #2 on: February 04, 2003, 08:59:50 AM »
Ray Mitchell wrote:
>
> Trevor
> At the command prompt do df -h on the day a backup is done,
> and then do df -h again when the next backup is due.
>
> Compare the two readings and the difference is the total
> increase in your data file size (assuming other changes have
> not been made to the server config etc).
>
> Hope this helps
> Regards
> Ray Mitchell

Thanks Ray, not quite what I am after I need to find the total number of bytes for all files changed on the drive.  This is basically what I need to backup or rsycn each day.  Was hoping there was some simple utility that might give me the answer but maybe easiest way will be to do a LS of all files then read into a dbase III file then filter by the current day and sum the number of bytes.

Thanks anyway