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