BackupPC-users

Re: [BackupPC-users] auto-expire when the disk is full

2008-05-12 09:54:15
Subject: Re: [BackupPC-users] auto-expire when the disk is full
From: Rob Owens <rob.owens AT biochemfluidics DOT com>
Date: Mon, 12 May 2008 09:53:59 -0400
Thanks for the advice.  I'll see if I can work this into a script and 
post back.

For future releases, I'd really love to see this as a config option in 
the CGI interface (hint, hint!)

-Rob

dan wrote:
> I think that you could do this with a bash script in cron.  do a `df 
> /var/lib/backuppc`, determine if the drive is over the limit, which you 
> can include the backuppc config file and use that variable in there for 
> percentage, then if you are over that percent do an `ls -l $TopDIR/pc/`  
> and choose the oldest file and delete that directory.
> 
> this could be very dangerous!
> 
> On Mon, May 12, 2008 at 5:50 AM, Rob Owens 
> <rob.owens AT biochemfluidics DOT com <mailto:rob.owens AT biochemfluidics 
> DOT com>> 
> wrote:
> 
>     Correct me if I'm wrong, but I think that if /var/lib/backuppc is full,
>     BackupPC will simply not perform any backups.  I'd like an option to
>     automatically delete the oldest backup in order to perform a new backup.
>      This is similar to the way MythTV works, if anybody's familiar with
>     that.  When you hit your "episode limit", it lets you either 1) not
>     record any new ones or 2) delete the oldest to make room for a new
>     episode.
> 
>     How hard would it be to implement this type of setting in BackupPC?
> 
>     -Rob
>     ********************************************************
> 
>     The information transmitted is intended only for the person or entity to
>     which it is addressed and may contain confidential and/or privileged
>     material. If you are not the addressee, any disclosure, reproduction,
>     copying, distribution, or other dissemination or use of this
>     transmission in
>     error please notify the sender immediately and then delete this e-mail.
>     E-mail transmission cannot be guaranteed to be secure or error free as
>     information could be intercepted, corrupted lost, destroyed, arrive
>     late or
>     incomplete, or contain viruses.
>     The sender therefore does not accept liability for any errors or
>     omissions
>     in the contents of this message which arise as a result of e-mail
>     transmission. If verification is required please request a hard copy
>     version.
> 
>     ********************************************************
> 
> 
>     -------------------------------------------------------------------------
>     This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>     Don't miss this year's exciting event. There's still time to save $100.
>     Use priority code J8TL2D2.
>     
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>     _______________________________________________
>     BackupPC-users mailing list
>     BackupPC-users AT lists.sourceforge DOT net
>     <mailto:BackupPC-users AT lists.sourceforge DOT net>
>     List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>     Wiki:    http://backuppc.wiki.sourceforge.net
>     Project: http://backuppc.sourceforge.net/
> 
> 
********************************************************

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If you are not the addressee, any disclosure, reproduction,
copying, distribution, or other dissemination or use of this transmission in
error please notify the sender immediately and then delete this e-mail.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted lost, destroyed, arrive late or
incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard copy
version.

********************************************************


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/