From: Carl W. S. <ch...@re...> - 2011-02-15 15:03:29
|
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 |