Difference between revisions of "SUNScholar/Disaster Recovery/Backups/Client Setup/Server Sync"
Jump to navigation
Jump to search
| Line 27: | Line 27: | ||
===Check the rysnc server=== | ===Check the rysnc server=== | ||
sudo rsync localhost::backup | sudo rsync localhost::backup | ||
| − | + | A listing files should be displayed. | |
sudo rsync localhost::home | sudo rsync localhost::home | ||
| + | A listing files should be displayed. | ||
===Add a firewall rule to allow the backup server to get to the backup files=== | ===Add a firewall rule to allow the backup server to get to the backup files=== | ||
Revision as of 13:40, 15 June 2013
Contents
Step 2. Enable sync to remote server
Create an rsync config file
sudo nano /etc/rsyncd.conf
Copy and paste the following.
[backup] path = /var/backup [home] path = /home
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
Enable the rsync server
sudo nano /etc/default/rsync
Change false to true.
RSYNC_ENABLE=true
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
Start the rsync server
sudo /etc/init.d/rsync restart
Check the rysnc server
sudo rsync localhost::backup
A listing files should be displayed.
sudo rsync localhost::home
A listing files should be displayed.
Add a firewall rule to allow the backup server to get to the backup files
sudo ufw allow from %server-hostname% to any port 873
Replace %server-hostname% with the server hostname of your backup server.
Back to Client Setup