david e4d95f75f0 | ||
---|---|---|
README.md | ||
deploy.sh | ||
sourcefile_sample | ||
sshbackup.sh | ||
sshbackup_v0.3.sh |
README.md
#sshbackup
bash script which does incremental backups through ssh using rsync. it is supposed to be amazingly easy to install, configure and maintain.
installation/usage:
- put the file sshbackup.sh somewhere you like to have it and run it as root.
- root must have a sshkey to connect to remote machines.
- first option must be the sourcefile.
- sourcefile example can be found in sourcefile sample.
- logs go to /var/log/sshbackup.log
- configure a cron job for continuous backups
in order to have mail notifications working you need your cron system be able to send mails with the MAILTO directive in crontab. the sshbackup scripts only output to stdout will be when an error occures. cron will send you a mail on output to stdout of a script which is run by it.
bugs/features:
- the remote sourcepath must be able to be listed by the remote backup user
todo/wanted: (roadmap)
- deploy feature (deploy required settings to remote machine)
- better notification system (for now its just crons mail on output feature)
- check if destination is full
license:
- public domain (do whatever, i'm not claiming anything)