SHARE
TWEET

Untitled

a guest Oct 14th, 2010 281 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. **** BACKUP SERVER ****
  2.  
  3. #/etc/rsyncd.conf
  4.  
  5. uid = root
  6. gid = root
  7.  
  8. secrets file = /etc/rsync.secrets
  9.  
  10. [lc]
  11.         path = /backup/lc
  12.         max connections = 1
  13.         lock file = /var/lock/lc
  14.         read only = no
  15.         list = yes
  16.         use chroot = yes
  17.         auth users = lc
  18.  
  19. #/etc/rsync.secrets
  20. lc:password
  21.  
  22.  
  23. *** BACKUP CLIENT ****
  24. #!/bin/sh
  25. export RSYNC_PASSWORD=password
  26. touch /var/log/backup.log
  27. chmod 640 /var/log/backup.log
  28. chown root.adm /var/log/backup.log
  29. rsync --numeric-ids --delete -av --exclude=/swap --exclude=/dev/'*' --exclude=/sys/'*' --exclude=/proc/'*' --exclude=/tmp/'*' / rsync://lc@backup.server/lc >&/var/log/backup.log
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top