Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Oct 14th, 2010  |  syntax: Ruby  |  size: 0.66 KB  |  hits: 135  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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