BackupPC tutorial on Linux

BackupPC is a free and versatile backup suite that can run on Linux systems and supports several protocols like NFS, SSH, SMB, and rsync. It can be used to backup numerous Linux, Mac, and Windows machines.

It has a lot of nice features like automatic backups and a web interface as its control panel. It also uses file compression and hard links to try and minimize the amount of space that your backups consume. Thus if a file is present on multiple machines, BackupPC is smart enough to only store a single copy of that file in the backup.

In this guide, we’ll show the step by step instructions for installing BackupPC on popular Linux distributions like Ubuntu, Debian, and CentOS. We’ll also cover some initial configuration so you can understand how to setup backup tasks within the program.

In this tutorial you will learn:

  • How to install BackupPC on various Linux distros
  • Initial configuration of BackupPC
BackupPC installed on Linux

BackupPC installed on Linux

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Any Linux distro
Software BackupPC
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Install BackupPC

The first step is to install the BackupPC software, and the command to do that will vary depending on your distro. Note that BackupPC will also install quite a few dependencies, including Apache which is used for BackupPC’s web based control panel. Use the appropriate command below to install BackupPC on your system.

To install BackupPC on Ubuntu, Debian, and Linux Mint:

$ sudo apt install backuppc

To install BackupPC on CentOS, Fedora, and Red Hat:

$ sudo dnf install epel-release
$ sudo dnf install backuppc

To install BackupPC on Arch Linux and Manjaro:

$ sudo pacman -S backuppc

During installation, BackupPC may prompt you with a few configurable options. Firstly, you can configure a mail server so BackupPC can send email alerts and statistics regarding backup jobs. If this doesn’t interest you, just select ‘no configuration’.

Mail configuration options

Mail configuration options

BackupPC will also let you choose which web server to use, although it’s ideal to use Apache. You may only see one selection if you don’t have other web servers installed.

Web server options

Web server options

A new web user is automatically created so you can login to BackupPC’s control panel to manage your backups. Make note of this information as we’ll need it for logging in later.

Take note of the username and password for the BackupPC web control panel

Take note of the username and password for the BackupPC web control panel

BackupPC should now be installed and we can move on to the initial configuration, which is covered in the section below.

Initial Configuration

BackupPC can technically be managed from the command line and has a slew of commands and configuration files available for it, but it’s definitely easier to use the provided web interface to set everything up.

Navigate to the web control panel by typing http://localhost/backuppc into a web browser. Alternatively, use your hostname or loopback IP address When presented with a login prompt, enter the information provided during the setup to login.

Logging into BackupPC control panel

Logging into BackupPC control panel

From this panel, you can add other computers to your backup config and configure how they will be backed up. Try adding new hosts under the “Edit config” link.

Add a host and configure other options under the edit config page

Add a host and configure other options under the edit config page

Set backup settings under the “Xfer” tab.

Configure transfer settings under the Xfer tab

Configure transfer settings under the Xfer tab

Finally, use the schedule tab to tell BackupPC when it should perform a backup job. Afterwards, you can continue using this control panel to see a full list of your backups, as well as to browse the files and see other pertinent information.


In this guide, we saw how to install and configure BackupPC on most popular Linux distributions. BackupPC takes a lot of the hassle and guess work out of managing your backups, while using all the most common protocols for the job, like rsync. This guide should be enough to get you started, although there’s a lot more configuration that can be done to BackupPC.

Comments and Discussions
Linux Forum