BackupPC-users

Re: [BackupPC-users] How to delete specific files from backups? (with BackupPC_deleteFile.pl)

2011-05-23 00:30:37
Subject: Re: [BackupPC-users] How to delete specific files from backups? (with BackupPC_deleteFile.pl)
From: Nick Bright <oz AT valnet DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sun, 22 May 2011 23:27:58 -0500
On 5/22/2011 7:14 PM, Nick Bright wrote:
> Sounds to me like the BackupPC_deleteFile script is the way to go:
> http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=BackupPC_DeleteFile
>
> I found it some time after posting my original question.
>

I am having a great deal of difficulty getting this to work. It runs OK 
but the output is just:

[hostname][][472 483 507 531 541 551 562 574 584 589 594 595 596 597 598 
599 600 601][]
   ANTE[hostname]:
   BAKS[hostname]: 472 483 507 531 541 551 562 574 584 589 594 595 596 
597 598 599 600 601
   POST[hostname]:
   LOOKING AT: [hostname] [][472 483 507 531 541 551 562 574 584 589 594 
595 596 597 598 599 600 601][] **NO DELETIONS ON THIS HOST**


Files/directories deleted: 0(0)     Files/directories copied: 0
Delete attrib set: 0                Attributes cleared: 0
Empty attrib files deleted: 0       Errors: 0

No matter what options I give it, it just won't delete anything.

There is a complete void of examples, and there is no indication of what 
valid inputs are for the arguments are in the documention, so I'm not 
even sure if I'm doing it correctly.

I've tried:

BackupPC_deleteFile.pl -h hostname -n - -d 4 /var/log/maillog
BackupPC_deleteFile.pl -h hostname -n 600 -d 4 /var/log/maillog
BackupPC_deleteFile.pl -h hostname -n 600 -d 4 
/backup/backuppc/pc/hostname/600/f%2f/fvar/flog/fmaillog
BackupPC_deleteFile.pl -h hostname -n - -d 4 /fvar/flog/fmaillog

But they all just give the same output - nothing deleted.

The key thing that's missing from the documentation is how to specify 
the file/directory that you would like to delete. Do you specify the 
file on the local filesystem? Do you specify the file on the remote host 
that's been backed up? Do you have to specify the full path name, or the 
relative path name?

Any advice appreciated

-- 
-----------------------------------------------
- Nick Bright                                 -
-----------------------------------------------
- Are your files safe?                        -
- Valnet Vault - Secure Cloud Backup          -
- More information&  30 day free trial at     -
- http://www.valnet.net/services/valnet-vault -
-----------------------------------------------


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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/