Remove a host from backuppc
I – Introduction
Backuppc is a nice backup tools. Its powerful and very simple to keep up. This tool is design for small infrastructure(less than 100 servers). Over 100 servers, i recommend to use a scalable backup tools like Bacula or Bareos (that’s my opinion).
In some case is useful to remove a server from the backup pool (old server, for release disk space on backuppc server, etc …).
This quick posts explain how to easily remove a host from backuppc.
For your information, you can’t remove completely a host only with the gui, you need to do several task in cli mode.
II – Backup location
Backuppc is usually installed in the directory : /var/lib/backuppc/
Backup files are located in several directory :
- /var/lib/backuppc/<server-to-remove> (only the file of the server)
- /var/lib/backuppc/cpool/ (contain a lots of file and hardlink for revisionning, dedup)
III – Remove host from GUI
Connect to the backuppc webgui and click to the link “Edit Host”.
Select the host to remove, click on the link “Delete” and save the configuration.
IV – Stop the backuppc service
root@backuppc_srv:~# /etc/init.d/backuppc stop
V – Remove the server file
root@backuppc_srv:~# rm -rf /var/lib/backuppc/<server-to-remove>/
VI – Rebuild backup files with the nighly script
root@backuppc_srv:~# su - backuppc --shell=/bin/bash
backuppc@backuppc_srv:~# /usr/share/backuppc/bin/BackupPC_nightly 0 255
The task take sometimes more than 1 hour in some case.
When its succesful, do and exit and restart the backuppc service
root@backuppc_srv:~# /etc/init.d/backuppc start