Install an Backup Server with Backuppc

by InstallVPS


Posted on February 16, 2019 at 13:11 PM


Backuppc installation in just one click.

Contents

Installation process

Here are all the actions we will perform on your server:

  1. Update package versions from repositories.
  2. Update all installed packages to the latest version.
  3. Install and configure all the packages

Packages Installed

The following packages will be installed on your server:

  1. Backuppc
  2. Apache (Check version in LAMP)
  3. rsync
  4. par2

Configuration

The following configuration changes will be performed on your server.

  • Generate a password to access backuppc web interface
  • Configure backups to be stored in /home/backuppc
  • Generate ssh keys
  • Set up rsync as default backup method
  • Set up a timeout of 100ms for backup hosts
  • Set up wake up schedule to be between 2am and 6am

Versions Installed

Depending on the operating system you choose, a different version of the packages will be installed.

You can check the package version for each operating system below.

Debian 8

Installation from repositories without external packages.

Versions installed:

  • Backuppc 3.3.0

Debian 9

Installation from repositories without external packages.

Versions installed:

  • Backuppc 3.3.1

Ubuntu 16.04

Installation from repositories without external packages.

Versions installed:

  • Backuppc 3.3.1

Ubuntu 18.04

Installation from repositories without external packages.

Versions installed:

  • Backuppc 3.3.1

After Installation

Your server is fully installed. You can now check your installation or perform other actions in your server.

Testing Installation

Once the installation is completed, you can test everything works connecting to your server with any ftp client that support SSL.

http://[yourserverip]/backuppc/

The username and password will be provided once the installation is completed. You can also find them in /root/installvps/.

How to add a new host to backup

If you want to make backups of a new host, you can add the host to your backup server following this steps.

First of all, you will need to give backuppc access to the host so it can backup files. This will be done adding the ssh key to the new host.

You will need to run this command in your backuppc server:

# ssh-copy-id -i /home/backuppc/.ssh/id_rsa.pub root@server-ip-you-want-to-backup

Then you will add the host to Backuppc by going to "Edit Hosts", then click on "Add" button and fill the hostname and the user (allways backuppc):



Add IP address in: Select Host -> Edit Config -> Setup IP address where it says "ClientNameAlias":



Setup which folder you want to backup: Select Host -> Edit Config -> Xfer -> RsyncShareName:



Backup method will be rsync by default, if you need to change it, this is done in "Host -> Edit Config -> Xfer -> XferMethod".

Backup launch schedule

By default your backup server will be configured to launch backups between 2am and 6am.

You can change this configuration in "Edit Config -> Sever -> Wakeup Schedule".