Hi, Colin Shorts wrote on 2014-12-10 11:45:41 +0000 [Re: [BackupPC-users] How to delete backups]: > You might want to press <Enter> before typing > `/usr/share/BackupPC/bin/BackupPC_nightly 0 255', otherwise it will get > deleted too.
right, press <Enter> *before* the command, *not after*. ***Never*** run BackupPC_nightly from the command line. ***Never*** advise other to do so. Really quite simple. Before that, on 10/12/14 11:41, Stephen Mew had written: > >Solution > > > > > >cd /var/lib/BackupPC/pc/<client>/ > >ls > >rm -fR <backup_number> [...] Yes, it's a solution. The question remains, for what problem. If you know *exactly* what you're doing, you can try that. Chances are, if you're asking here how to delete backups, you *don't* know *exactly* what you're doing. If you're recommending this, you probably also don't *exactly* know what you're doing, otherwise you wouldn't recommend it. Removing one backup directory will usually work quite well, if and only if no backups depend on it. Nothing will prevent you from removing data still needed by other backups with 'rm'. Don't expect BackupPC to handle the resultant pc directory gracefully. If you want to remove *all* backups of one client (the original question suggests this might be the case), rm -rf /var/lib/BackupPC/pc/<client> will work (supposing /var/lib/BackupPC is your TopDir ... mine is different). No dependency problems, no summary files to patch. For removing single backups, get Jeffrey's script. > >nano /var/lib/BackupPC/pc/<client>/backups nano? The only thing you need to know about nano is Ctrl-x. Tip for Debian users: update-alternative --set editor /usr/bin/nvi update-alternative --set view /usr/bin/nview But that's kind of off-topic (and a matter of opinion - I'm sure there are other vi clones that are rather acceptable ;-). Yet earlier still, on 10 December 2014 at 11:04, lanceh1412-busin...@yahoo.co.uk <mailto:lanceh1412-busin...@yahoo.co.uk> had written: > > How do you delete backups? I've been messing around with lots of > > different hosts trying to work out how to use the software and I > > want to get rid of all the unwanted backups. If you want to get rid of all backups of one or more hosts, delete the host directories (or move them to $TopDir/trash and BackupPC will do it for you). > > [...] > > There is no BackupPC_delete whch I have seen mentioned in the > > archive. That's correct. It's not part of the official BackupPC software, it's a user contribution by Jeffrey J. Kosowsky. I don't have a recent copy, but I'm sure Jeffrey does ;-). Let me state this clearly: After deleting backups, there is no *need* to initiate a BackupPC_nightly run. BackupPC will automatically do that at some configured point within the next 24 hours. Only if you absolutely want to see the space freed as soon as possible do you need to politely ask BackupPC to run the command as soon as it is safe to do so: # su backuppc -c "/usr/share/backuppc/bin/BackupPC_serverMesg BackupPC_nightly run" Hope that helps. Regards, Holger ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ 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/