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