diff --git a/README.md b/README.md index b2e307d..dbfd7e4 100644 --- a/README.md +++ b/README.md @@ -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 ``` 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 # [] 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.