david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0
This repository has been archived on 2023-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
sshbackup/README.md

29 lines
924 B
Markdown
Raw Normal View History

2013-04-26 11:00:09 +02:00
sshbackup
=========
2012-08-27 11:13:24 +02:00
2013-04-27 21:00:51 +02:00
for automated backups configure a sshkey for the user running sshbackup.
you must add following to /etc/sudoers on your remote servers as well to
make automated backups work
```backupuser ALL=(root)NOPASSWD: /usr/bin/rsync```
a example config for default values in ~/.sshbackup looks like this:
```
#rsync options.
rsyncoptions="-pogEthrzl --numeric-ids --no-motd"
#dotglob option removes bug while rsyncing folder with no visible files in it.
remotecmd="shopt -s dotglob; /usr/bin/sudo /usr/bin/rsync"
localcmd="/usr/bin/rsync"
sshkeyfile="$HOME/.ssh/id_rsa"
```
if you are running sshbackup through cron configure the MAILTO
directive for getting error notifications.
a list file could look like this
```
david@dev.socialnerds.org:/home/david /home/david/Downloads/devhome 30
backupuser@dev.socialnerds.org:/home/gollum/ /home/david/Downloads/gollum
/home/david/something /home/david/backup 5
```