Difference between revisions of "SUNScholar/Disaster Recovery/Backups/Server Setup"

From Libopedia
Jump to navigation Jump to search
m (Install "backuppc" server)
(Install "backuppc" server)
Line 22: Line 22:
 
  sudo apt-get install apache2 apache2-utils
 
  sudo apt-get install apache2 apache2-utils
  
 +
;For Ubuntu 12.04
 
  sudo cd /etc/apache2/conf.d (See note below)
 
  sudo cd /etc/apache2/conf.d (See note below)
 
''Please note: With Ubuntu 14.04, this is not needed.''
 
''Please note: With Ubuntu 14.04, this is not needed.''
 
+
;For Ubuntu 14.04
  sudo ln -s /etc/backuppc/apache.conf backuppc (See note below)
+
  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".''
 
''Please note: With Ubuntu 14.04, this is not needed, instead type "a2enmod cgi" and then type "a2enconf backuppc".''
  

Revision as of 19:34, 21 April 2016

Back to Disaster Recovery Backups

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 12.04
sudo cd /etc/apache2/conf.d (See note below)

Please note: With Ubuntu 14.04, this is not needed.

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".

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:
http://%my-backup-server/backuppc

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:

Backuppc.png

  • 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.

Backuppc-2.png

Continue to setup backuppc as needed. That's it.