david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

updated README

This commit is contained in:
david 2013-04-27 22:55:18 +02:00
parent cb0e130a2c
commit 7d1a6c2465
1 changed files with 10 additions and 9 deletions

View File

@ -1,13 +1,5 @@
# 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
```
sshbackup is a shell script for doing incremental backups.
### scheduling
using cron will help you with that. example /etc/crontab:
@ -38,6 +30,15 @@ sudo su
ssh-keygen
ssh-copy-id <remote machine>
```
you must add the backupuser to /etc/sudoers on your remote servers as well
to make automated backups work. type:
```
sudo visudo #this will open /etc/sudoers in a texteditor
```
and add following at the end of that file:
```
backupuser ALL=(root)NOPASSWD: /usr/bin/rsync
```
you can use a file which should have a source/destination combination each line.
example listfile: