Hi, Nick Bright wrote on 2011-05-22 23:27:58 -0500 [Re: [BackupPC-users] How to delete specific files from backups? (with BackupPC_deleteFile.pl)]: > On 5/22/2011 7:14 PM, Nick Bright wrote: > > Sounds to me like the BackupPC_deleteFile script is the way to go: > [...] > 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.
Jeffrey? ;-) > I've tried: > > BackupPC_deleteFile.pl -h hostname -n - -d 4 /var/log/maillog > [...] > > But they all just give the same output - nothing deleted. >From that example, the general syntax of the BackupPC_* commands provided with BackupPC, and the expectation that Jeffrey will follow their conventions, I'd expect you need to provide a '-s <sharename>' argument and probably the path within this share as either relative or absolute path. So, if you have a share '/var', that would be BackupPC_deleteFile.pl -h hostname -n - -d 4 -s /var /log/maillog or possibly BackupPC_deleteFile.pl -h hostname -n - -d 4 -s /var log/maillog (don't know what '-d 4' does, though; aside from that, where did you get '-n -' from? Maybe try '-n -1'?). You probably have a share '/', so it would be '-s / /var/log/maillog' or '-s / var/log/maillog' instead. It really depends on how you set your backups up, because that determines how BackupPC stores them. But I'm just guessing. I'd look at the script, but I don't really have the time right now. Wait for an authoritative answer if you don't feel like experimenting (but you probably do - you've already done so ;-). Hope that helps. Regards, Holger ------------------------------------------------------------------------------ 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@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/