SUNScholar/Disaster Recovery/Backups/Client Setup

From Libopedia
Revision as of 14:41, 10 August 2012 by Hgibson (talk | contribs) (Created page with "Create an rsync config file. nano /etc/rsyncd.conf Copy and paste the following. <pre> [backup] path = /var/backup [home] path = /home </pre> Enable the rsync server. nano /et...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create an rsync config file.

nano /etc/rsyncd.conf

Copy and paste the following.

[backup]
path = /var/backup

[home]
path = /home

Enable the rsync server.

nano /etc/default/rsync

Change false to true.

RSYNC_ENABLE=true

Now you start the rsync server as follows:

/etc/init.d/rsync restart

Check the rysnc server.

rsync localhost::backup
rsync localhost::home

Now we add a firewall rule to allow the backup server to get to the backup files, type as follows:

ufw allow from %hostname% to any 873

Replace %hostname% with the hostname of your backup server.