Remove a host from backuppc

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)

I plan to write another post in order to explain the role of each directory.

III – Remove host from GUI

Connect to the backuppc webgui and click to the link “Edit Host”.

Remove a host from backuppc

Remove a host from backuppc

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

VII – Man page of backuppc


Hi, I'm Florian and I'm 32 years old. I have discover IT at 17, and i had my first internet connection at 23. So i'm not going to say that i was very precocious in this domain... PS : I 'm French, so please, be lenient with my english ;)

3 Responses

  1. Roberto says:

    Useful article thanks.

  2. Peter says:

    I think there is an error in step 5. Looks like you are deleting all of the backups instead of just the host you want to remove. It should be rm -rf /var/lib/backuppc/pc/.

    • florian says:

      Thanks you for your reply, i am so confused … Its was a stupid mistake not a trap. I update the English and French post.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.