[CLUG-tech] Calculating Bandwidth with rsync

Charles Oertel charles at finebushpeople.net
Fri Feb 17 08:34:21 SAST 2006


Hi Shawn

Shawn wrote:
> My next question is how can I monitor the bandwidth? I will be backing
> up a number of windows machines to the same linux server, each backup
> will use a different user and be stored in a different directory. I
> would need to calculate on a monthly basis how much data each
> directory/user has used.

Run this in the home directory (as root or with sudo):
du -m --max-depth=1  | sort -g

This gives you disk usage of the directories under /home, in Megs, and 
sorts it in ascending size.  You can increase max-depth to show more 
subdirectories (but this is less useful IMO).

regards
Charles


More information about the Clug-tech mailing list