[Box Backup] managing disk space
boxbackup@fluffy.co.uk
boxbackup@fluffy.co.uk
Wed, 21 Jul 2004 09:45:44 -0400 (EDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--8323328-959055098-1090417544=:3742
Content-Type: TEXT/PLAIN; charset=US-ASCII
Here it is...
You need to run it as a cron job using a period of half the period of the
shortest time span in which you want to detect a dropout, or less (twice
the frequency). This is because of the Nyquist sampling theorem. If you
do not do this, you may get false positives.
The only problem I've noticed is that the Perl module I use to read the
logs crashes after a reboot on my Debian machine until the logs are
rotated.
You need to look at the Perl file to see the file locations it uses,
basically just /etc and /var/lib, but you need to create the
/var/lib/dropout_tracker directory manually.
This code should work on Debian Linux, Solaris and the various BSD's,
although I have only run it on Debian. The limiting factor should be the
Perl module that decodes the syslogs.
I have included the Perl script, an example configuration file and the
file that is created in /var/lib (however that file is recreated each time
the script is run, so it's for informational purposes).
The dropout period can be more or less any arbitrary period, the syntax is
limited by the Perl date module I used to decode it.
If you have any questions, feel free to ask me about it.
Rick
On Wed, 21 Jul 2004, Nick Knight wrote:
> Hello Rick,
>
> If you could send it over that would be great.
>
> Regards
>
> Nick
>
> -----Original Message-----
> From: boxbackup-admin@fluffy.co.uk [mailto:boxbackup-admin@fluffy.co.uk]
> On Behalf Of rprice@freeshell.org
> Sent: 20 July 2004 19:52
> To: boxbackup@fluffy.co.uk
> Subject: RE: [Box Backup] managing disk space
>
>
> I have such a script written in Perl, but it is actually more general
> than
> that. I would be happy to send it to you if you want. I run it on the
> server.
>
> However, whenever the client cannot backup, it logs the error on the
> client, so you can check there as well.
>
> Rick
>
>
> On Tue, 20 Jul 2004, Nick Knight wrote:
>
> > There was one thing I am trying to figure out which I was hoping maybe
> > in some other tools. From the server end perform a report that all
> > clients are sucsesfully backuping up or not - plus other details, is
> > there enough info at the server end to do this?
> >
> > Thanks
> >
> > Nick
> >
> > ________________________________
> >
> > From: boxbackup-admin@fluffy.co.uk on behalf of Ben Summers
> > Sent: Tue 20/07/2004 10:41
> > To: boxbackup@fluffy.co.uk
> > Subject: Re: [Box Backup] managing disk space
> >
> >
> >
> >
> > On 19 Jul 2004, at 21:13, Nick Knight wrote:
> >
> > > Hello all,
> > >
> > > Quick question on how to keep account sizes down. Out of the box the
> > > system just puts in data, is there a way to get it to remove deleted
> > > files after 30 days for example?
> >
> > When the space used reaches the soft limit, the housekeeping process
> > will start deleting older files to keep the space used below this
> > value. It won't grow indefinitely! If bbackupd attempts to upload a
> > file which would take usage over the hard limit, then the file will
> not
> > be accepted.
> >
> > Just set soft and hard limits appropriately, and everything will be
> > fine.
> >
> > There will be more control in the version after the next version. I'm
> > just putting the finishing touches to storage of older versions on the
> > server as patches from the latest version (all works, just working on
> > the "fix broken account" code), and then will write up a spec for what
> > I'm going to do and post it here for comments. This will essentially
> > emulate what you can do with tapes, but use less space.
> >
> > Ben
> >
> >
> >
> > _______________________________________________
> > boxbackup mailing list
> > boxbackup@fluffy.co.uk
> > http://lists.warhead.org.uk/mailman/listinfo/boxbackup
> >
> >
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>
--8323328-959055098-1090417544=:3742
Content-Type: APPLICATION/x-gtar; name="dropout_tracker.tgz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.56.0407210945440.3742@server>
Content-Description:
Content-Disposition: attachment; filename="dropout_tracker.tgz"
H4sIAFxw/kAAA+1abVPbVhbOV/wrTok7QNfFNhhoRJOpsQVoF2xq2WEz292M
kK5tDbKkSjKEZtjfvs+5V7KFMYU0KZ2d6HSKbemec8/Lc16uFCcKwmCavE8i
y74UUfXFn0A10N7ODn/W93Zq+c+MXtRrtZ09LKpt1V/U6ju13foL2vkzlFmk
aZxYEdGLKIxcWzy87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