Richard Shaw wrote at about 08:20:29 -0600 on Monday, March 2, 2020: > > > > On Mon, Mar 2, 2020 at 5:08 AM Graham Seaman <gra...@theseamans.net> > > wrote: > > > >> I'd like to be able to mark some older full backups as 'frozen', not to > >> be deleted. Is that possible? I can't find any mention of this in the > >> docs. > > > > > I don't think it's possible to mark one specific backup to keep, it's not > really part of the way BackupPC is designed to work. > I added some simple code for v4 that allows you to mark some versions as frozen -- which IMO is a very important feature... Would love if Craig added that <hint> <hint>
--- BackupPC_dump.orig 2020-02-02 10:30:49.000000000 -0500 +++ BackupPC_dump 2020-02-02 10:34:28.955761936 -0500 @@ -1871,6 +1871,9 @@ my $noDelete = $i + 1 < @$Backups ? $Backups->[$i+1]{noFill} : 0; $noDelete = 0 if ( !$Backups[$i]{preV4} ); + #Don't delete full backups that have '.save' in their root directory + $noDelete = 1 if -e $Dir . "/" . $Backups[$i]{num} . "/.save"; + if ( !$noDelete && ($fullKeepIdx >= @$fullKeepCnt || $k > 0 NOTE: just do: touch TopDir/pc/<host>/<num>/.save > I would just archive the backup you want to keep to another media. > > Thanks, > Richard > _______________________________________________ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/