SUNScholar/Disaster Recovery/Backups/Server Setup
Enable "rsync" connections to the backup server
- Install the firewall service:
sudo apt-get install ufw
- Add a firewall rule for secure remote connections:
sudo ufw allow ssh
- Enable the firewall as follows:
sudo ufw enable
- Create a firewall rule for each client to be backed up as follows:
sudo ufw allow from %client-ipaddress% to any
- Now test your rsync connection to each client as follows:
sudo rsync %client-ipaddress%::backup
You should get a listing of the backup files in the clients /var/backup folder.
Install "backuppc" server
- If the above is successful then install backuppc on the server as follows:
sudo apt-get install backuppc
- BackupPC has a web interface which you enable as follows:
sudo apt-get install apache2 apache2-utils
- For Ubuntu 14.04
sudo ln -s /etc/backuppc/conf-available backuppc.conf (See note below)
Please note: With Ubuntu 14.04, this is not needed, instead type "a2enmod cgi" and then type "a2enconf backuppc".
- For Ubuntu 12.04
sudo cd /etc/apache2/conf.d (See note below)
Please note: With Ubuntu 14.04, this is not needed.
sudo service apache2 restart
- Now we add an admin backuppc user as follows:
sudo htpasswd /etc/backuppc/htpasswd backuppc (See note below)
You will be prompted to enter a password twice.
Setup "backuppc" server
- Now open a web browser and type the following into the address bar:
You will be prompted for the username and password that you set up above.
After logging in and clicking on "Host Summary", you should be presented with a screen like the following:
- Now setup backuppc by adding host configurations. There is plenty of backuppc documentation on the internet.
However, below is an example screenshot of the critical configuration, Xfer settings, that are done per host. Check out highlighted boxes in red.
Continue to setup backuppc as needed. That's it.