david c6d3a432f4 | ||
---|---|---|
.gitignore | ||
README.md | ||
sshbackup |
README.md
sshbackup
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