BackupPC is an open source high-performance backup solution designed to backup clients over a network. In this tutorial, we will install BackupPC on Ubuntu Server Latest.
sudo apt-get update
sudo apt-get install apache2 libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-mpm-prefork libcompress-zlib-perl libcompress-raw-zlib-perl libcgi-session-perl libcgi-pm-perl libio-pty-perl libmd5-perl libxml-rss-perl libxml-rss-feed-perl
sudo apt-get install backuppc
sudo nano /etc/apache2/sites-available/000-default.conf
Add the following block to the end of the file
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/backuppc/cgi-bin/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /usr/share/backuppc/cgi-bin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /backuppc/cgi-bin/ /usr/share/backuppc/cgi-bin/
Alias /backuppc /var/lib/backuppc/cgi-bin/
<Directory /var/lib/backuppc/cgi-bin>
AllowOverride None
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
</VirtualHost>
sudo systemctl restart apache2
sudo nano /etc/backuppc/config.pl
Find the following variables and modify them as per your requirement:
$Conf{ServerName} = 'localhost'; # Update with your server hostname or IP
$Conf{ServerMesg} = 'BackupPC Backup Server'; # Update with your server name or message
$Conf{CgiDir} = '/usr/share/backuppc/cgi-bin'; # Default location of CGI files
$Conf{CgiAdminUsers} = 'backuppc'; # You can add multiple users separated by ,
$Conf{CgiAdminAuth} = 'basic'; # Authentication type for CGI
$Conf{CgiURL} = '/backuppc/cgi-bin'; # URL of CGI
$Conf{BackupPCUser} = 'backuppc'; # Default username for backupPC
$Conf{MaxBackups} = 2; # Maximum number of backups to keep
$Conf{MaxUserBackups} = 1; # Maximum number of backups per user to keep
$Conf{FullPeriod} = 6.97; # Number of day after which full backup will be taken
sudo systemctl restart backuppc
You have successfully installed BackupPC on Ubuntu Server Latest.
By following the above steps, you have successfully installed BackupPC on Ubuntu Server Latest. You can now start using BackupPC for your backups.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!