BackupPC-users

Re: [BackupPC-users] How to empty a backed-up host?

2011-02-15 10:04:57
Subject: Re: [BackupPC-users] How to empty a backed-up host?
From: Carl Wilhelm Soderstrom <chrome AT real-time DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 15 Feb 2011 09:03:22 -0600
On 02/15 02:13 , Boniforti Flavio wrote:
> I've backed up one remote host (ssh+rsync) and now I want to empty it's
> contents (directories) without losing configuration.
> 
> How may I achieve this?

cd /var/lib/backuppc/pc/<hostname>
rm -rf *

This of course assumes that the data is in /var/lib/backuppc; and your
per-host configuration files are in /etc/backuppc.

Also note that the space won't be freed until BackupPC_nightly runs. If I
remember correctly, you can invoke it by hand with:
su - backuppc
/usr/share/backuppc/bin/BackupPC_nightly 0 255

Someone please correct me if there are cleaner ways to do this, or ones with
fewer gotchas.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>