Re: Limit the size of a directory
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 11/10/04
- Next message: Dr Balwinder Singh Dheeman: "Re: midnight commander shows wrong in remote x session"
- Previous message: Kamus of Kadizhar: "Re: Migrating Windows to Linux Questions."
- In reply to: Fritz Bayer: "Re: Limit the size of a directory"
- Next in thread: Kamus of Kadizhar: "Re: Limit the size of a directory"
- Reply: Kamus of Kadizhar: "Re: Limit the size of a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Nov 2004 13:36:39 +0100
In comp.os.linux.misc Fritz Bayer <fritz-bayer@web.de>:
> ptb@lab.it.uc3m.es (Peter T. Breuer) wrote in message news:<ikt862-bfl.ln1@news.it.uc3m.es>...
>> Fritz Bayer <fritz-bayer@web.de> wrote:
>> > how do I set the maximum size of a directory, so that all files in the
>> > directory do not exceed this limit?
>>
>> You place the directory in a partition of limited size (and appropriate
>> amounts of quota, if necessary).
> To place the directory in a seperate partition is unfortuantely not an
> option. But its a good advice for the future.
> Is there any other way how I can make sure that the log will not fill
> up the harddrive?
Simply write a script running from cron, checking 'du -sk /dir'
the size and delete/zero the biggest 5 files or so if the dir is
bigger then what you want. Run every ten minutes or so.
-- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 226: A star wars satellite accidently blew up the WAN.
- Next message: Dr Balwinder Singh Dheeman: "Re: midnight commander shows wrong in remote x session"
- Previous message: Kamus of Kadizhar: "Re: Migrating Windows to Linux Questions."
- In reply to: Fritz Bayer: "Re: Limit the size of a directory"
- Next in thread: Kamus of Kadizhar: "Re: Limit the size of a directory"
- Reply: Kamus of Kadizhar: "Re: Limit the size of a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|