4.x includes BackupPC_backupDelete, which is the reliable way to delete
entire backups, or portions of backups.  Since 4.x maintains reference
counts instead of using hardlinks, BackupPC_backupDelete has to be careful
to update the reference counts after deleting something.

Here's the usage:

usage: BackupPC_backupDelete -h host -n num [-p] [-l] [-L] [-r] [-s
shareName [dirs...]]
  Options:
     -h host         host name
     -n num          backup number to delete
     -s shareName    don't delete the backup; delete just this share
                     (or only dirs below this share if specified)
     -p              don't print progress information
     -L              log output to host's LOG file (instead of stdout)
     -l              don't remove XferLOG files
     -r              do a ref count update (default: none)
  If a shareName is specified, just that share (or share/dirs) are deleted.
  The backup itself is not deleted, nor is the log file removed.


In 3.x, it's relatively easy and safe to delete portions of backups.  The
BackupPC_deleteFile.pl mentioned by GW Haywood isn't built into 3.x, but is
worth checking out.

Craig

On Fri, Mar 30, 2018 at 5:26 AM, G.W. Haywood via BackupPC-users <
backuppc-users@lists.sourceforge.net> wrote:

> Hi there,
>
> On Fri, 30 Mar 2018, Stefan Schumacher wrote:
>
> ... Are there any other, better ways I should consider when
>> sanitizing my backups? ...
>>
>
> #!/usr/bin/perl
> #============================================================= -*-perl-*-
> #
> # BackupPC_deleteFile.pl: Delete one or more files/directories from
> #                         a range of hosts, backups, and shares
> #
> # DESCRIPTION
> #   See below for detailed description of what it does and how it works
> #
> # AUTHOR
> #   Jeff Kosowsky
> # [...]
>
> --
>
> 73,
> Ged.
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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/
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/

Reply via email to