BackupPC-users

Re: [BackupPC-users] Feature request: preserve (from deletion) individual backups by number

2009-08-28 14:47:27
Subject: Re: [BackupPC-users] Feature request: preserve (from deletion) individual backups by number
From: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
To: General list for user discussion <backuppc-users AT lists.sourceforge DOT net>, Craig Barratt <cbarratt AT users.sourceforge DOT net>
Date: Fri, 28 Aug 2009 14:39:39 -0400
Craig Barratt wrote at about 10:48:25 -0700 on Friday, August 28, 2009:
 > Jeffrey writes:
 > 
 > > In general, using FullKeepCnt and IncrKeepCnt (and associated
 > > variables) works well to prune older backups.
 > > 
 > > But sometimes there is a *specific* older backup that you want to hang
 > > onto because it has some crucial data (or is a 'better' snapshot). It
 > > would be great if you could tell BackupPC to keep an arbitrary list of
 > > numbered backups for each different host. (If any of the listed backups
 > > are incrementals, then BackupPC would of course be smart enough to
 > > save the relevant precedent incrementals and full backups).
 > > 
 > > For example I could imagine, a perl hash of arrays of the following
 > > form:
 > > 
 > > $Conf{PreserveBackups} = {
 > >                 "hostA" => [ '23', '354', '798' ],
 > >                 "hostB" => [ '3', '25', '37', '101' ],
 > >                 "hostC" => [ '9', '11', '33', '434' ],
 > >                 };
 > > 
 > > Does this make sense?
 > 
 > I'll add it to the todo list.  It's much better to put in
 > the backups file, rather than config file.
 > 
 > Craig
 > 

Perhaps an interesting alternative way to do this without having to go
into the config file (and in a way similar to what a previous
responder mentioned) would be to set up logic so that any backup that
has a 'minus' sign on it would be preserved (along with it's
antecedents).

Then you could 'toggle the persistence of a backup either manually by
renaming the backup (i.e. mv nnnn -nnnn) or by perhaps clicking a
button in the web interface that would execute the same toggle by
renaming the backup to add/remove a preceding minus sign.

This would be nice in that it would avoid fiddling with the config
files and in that it would be very obvious by just listing the files
to see which ones are persistent.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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/