On 15:43 22 Jun 2003, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
| Cameron Simpson wrote:
| 
| >No, I meant df. Because that will tell you how much space is really being
| >used up _without_ having to run a du over the tree (which can lie unless
| >it sees every link).
| >
|    Eh, df only shows me the total size on the partition/drive table. 
| Not the size of each individual directory.  Like on the current server:
| 
| df -k .
| Filesystem           1k-blocks      Used Available Use% Mounted on
| /dev/hda1              2063504   1042948    915736  54% /

Yes, but it's easier to watch it go down after each backup.
Assuming nothing else is consuming space on this partition.

| >Well, "du -ks" if you want to be portable (and succinct).
| >
|    No, this only shows me the contents of that parent directory, not 
| individual ones below it.  See, this is what I wanted (spanned across to 
| save on message length):
| 
| du -h -max-depth=1 .
| 2.1G ./daily.01   928M ./daily.08   334M ./daily.15   402M ./daily.22
| 1.6G ./daily.02   820M ./daily.09   962M ./daily.16   318M ./daily.23
| 1.5G ./daily.03   804M ./daily.10   823M ./daily.17   245M ./daily.24
| 1.4G ./daily.04   616M ./daily.11   732M ./daily.18   190M ./daily.25
| 1.3G ./daily.05   512M ./daily.12   642M ./daily.19   166M ./daily.26
| 1.2G ./daily.06   406M ./daily.13   551M ./daily.20   151M ./daily.27
| 1.1G ./daily.07   296M ./daily.14   2.8G ./daily.21   120M ./daily.28
| 23G  .
| 
|    ...sizes for each individual directory, as well as a total for all 
| (23G).  A 'du -ks' (or -hs) only tells me that 23G, and nothing else.

Nonono. Do this:

        du -ks *
    not
        du -ks .

| >[...histbackup-prune...]
| >It takes a directory like yours with lots of backups
| >and removes the oldest until a certain amount of free space is present.
| >
|    See, normally I wouldn't have this problem.  The 11 servers I've 
| been backing up since last year are fitting nicely on a single 120G 
| drive (with a 28 day loop like you've seen above).

Ah. I don't loop. I just let it all fill up.

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

Indeed. It reminds me of a cartoon drawing I once saw. It was called the Last
Act of Defiance and showed a striking eagle, caricatured beyond all reason,
whose vastly exaggerated talons were but inches from a very small mouse. The
mouse, with true style, was simply standing there giving the eagle the finger.
        - Jon McCulloch <[EMAIL PROTECTED]>


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to