david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0
bash script for performing incremental backups.
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.
Go to file
david c6d3a432f4 modified .gitignore 2013-04-27 21:04:12 +02:00
.gitignore modified .gitignore 2013-04-27 21:04:12 +02:00
README.md removed old code. moved to version 0.3 2013-04-27 21:00:51 +02:00
sshbackup removed old code. moved to version 0.3 2013-04-27 21:00:51 +02:00

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