[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Savannah-hackers-public] disk-usage monitoring on vcs.sv.gnu.org
From: |
Karl Berry |
Subject: |
Re: [Savannah-hackers-public] disk-usage monitoring on vcs.sv.gnu.org |
Date: |
Wed, 4 Feb 2015 21:40:41 GMT |
So something like the following, once a week:
Right. Maybe --exclude=/proc, as Bob mentioned.
du --one-file-system --human --bytes --separate-dirs / \
Better to leave out --human, since it's a lot easier for a script to
subtract two actual numbers than something like "2.1M" from "1.1G".
Also I wouldn't bother with --bytes; when it comes to disk space, kb is
easier to think in, and the exact number of bytes isn't really crucial.
Anything important will be a lot of megabytes anyway.
Thanks,
Karl