david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

Updated README (markdown)

This commit is contained in:
david 2013-06-29 15:36:38 +02:00
parent 94d4ffeff7
commit 7211bdba90
1 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ MAILTO="admin@example.com"
### notifications
utilize crons MAILTO directive for getting error notifications.
```
```text
MAILTO=admin@example.com
```
@ -50,24 +50,24 @@ MAILTO=admin@example.com
### automation
for automated backups configure a sshkey for the root user and
configure your remote machines to trust that key.
```
```sh
sudo su
ssh-keygen
ssh-copy-id <remote machine>
```
you must add the backupuser to /etc/sudoers on your remote servers as well
to make automated backups work. type:
```
```sh
sudo visudo #this will open /etc/sudoers in a texteditor
```
and add following at the end of that file:
```
```text
backupuser ALL=(root)NOPASSWD: /usr/bin/rsync
```
you can use a file which should have a source/destination combination each line.
example listfile:
```
```text
#<source> <destination> [<versions>]
david@dev.socialnerds.org:/home/david /home/david/Downloads/devhome 30
backupuser@dev.socialnerds.org:/home/gollum/ /home/david/Downloads/gollum
@ -78,7 +78,7 @@ backupuser@dev.socialnerds.org:/home/gollum/ /home/david/Downloads/gollum
### ~/.sshbackup
an example config for default values looks like this.
if you don't use a config file there are useful defaults though.
```
```text
#rsync options.
rsyncoptions="-pogEthrzl --numeric-ids --no-motd"
#dotglob option removes bug while rsyncing folder with no visible files in it.