Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **** BACKUP SERVER ****
- #/etc/rsyncd.conf
- uid = root
- gid = root
- secrets file = /etc/rsync.secrets
- [lc]
- path = /backup/lc
- max connections = 1
- lock file = /var/lock/lc
- read only = no
- list = yes
- use chroot = yes
- auth users = lc
- #/etc/rsync.secrets
- lc:password
- *** BACKUP CLIENT ****
- #!/bin/sh
- export RSYNC_PASSWORD=password
- touch /var/log/backup.log
- chmod 640 /var/log/backup.log
- chown root.adm /var/log/backup.log
- rsync --numeric-ids --delete -av --exclude=/swap --exclude=/dev/'*' --exclude=/sys/'*' --exclude=/proc/'*' --exclude=/tmp/'*' / rsync://lc@backup.server/lc >&/var/log/backup.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement