Difference between revisions of "SUNScholar/Disaster Recovery/Backups/Client Setup"
Jump to navigation
Jump to search
(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...") |
|||
| Line 22: | Line 22: | ||
Now we add a firewall rule to allow the backup server to get to the backup files, type as follows: | 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 | + | ufw allow from %hostname% to any port 873 |
Replace %hostname% with the hostname of your backup server. | Replace %hostname% with the hostname of your backup server. | ||
Revision as of 14:56, 28 August 2012
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 port 873
Replace %hostname% with the hostname of your backup server.