Build CentOS 6 Server-rsync, Amanda

Source: Internet
Author: User
Tags rsync

(i) rsync

Server Side

Java code
  1. # yum Install rsync
  2. # Vi/etc/xinetd.d/rsync
  3. Service rsync
  4. {
  5. Disable = no
  6. Flags = IPV6
  7. Socket_type = Stream
  8. wait = no
  9. user = root
  10. Server =/usr/bin/rsync
  11. Server_args =--daemon
  12. Log_on_failure + = USERID
  13. }
  14. # vi/etc/rsyncd.conf
  15. #--------------
  16. # Global Options
  17. #--------------
  18. UID = root
  19. GID = root
  20. Log file =/var/log/rsyncd.log
  21. PID file =/var/run/rsyncd.pid
  22. Hosts allow = 192.168. 21.0/
  23. Hosts deny = *
  24. Dont compress = *.gz *.tgz *.zip *.pdf *.sit *.sitx *.lzh *.bz2 *.jpg *.gif *.png
  25. #--------------
  26. # Module Options
  27. #--------------
  28. [TMP]
  29. Comment = rsync server
  30. Path =/tmp/rsync_folder
  31. Use chroot = true
  32. Auth users = Rsync_user1, Rsync_user2
  33. Secrets file =/etc/rsyncd.secrets
  34. Read Only = false
  35. Exclude = *.mp
  36. Include = *.mp30
  37. # mkdir-p/tmp/rsync_folder
  38. # Vi/tmp/rsync_folder/a.txt
  39. Test
  40. # vi/etc/rsyncd.secrets
  41. Rsync_user1:password
  42. Rsync_user2:password
  43. # chmod 600/etc/rsyncd.secrets
  44. # Service XINETD Restart



Client Side

Java code
    1. # yum Install rsync
    2. # VI/ETC/RSYNC.PASSWD
    3. Password
    4. # chmod 600/etc/rsync.passwd



Confirm

Java code
    1. #/usr/bin/rsync-avz--delete--password-file=/etc/rsync.passwd rsync://[email protected]/tmp/usr/local/ Rsynctest
    2. Receiving incremental file list
    3. ./
    4. A.txt
    5. Sent bytes received 156 bytes 476.00 bytes/sec
    6. Total size was 5 speedup is 0.02
    7. # ls-l/usr/local/rsynctest



Synchronize regularly

Java code
    1. # CRONTAB-E
    2. #每5-minute sync
    3. */5 * * * * */usr/bin/rsync-avz--delete--password-file=/etc/rsync.passwd rsync://[email Protected]/tmp/usr/loc Al/rsynctest



(b) Amanda

Installation

Java code
    1. # Yum List | grep "^amanda"
    2. 2.6.1p2-9.el6_6 version older
    3. # yum Install Amanda



Installing 3.3.7

Java code
    1. # CD/USR/LOCAL/SRC
    2. # wget http://www.zmanda.com/downloads/community/amanda/3.3.7/source/amanda-3.3.7-1.rhel6.src.rpm
    3. # RPM-UVH amanda-3.3. 7-1.rhel6.src.rpm



Server Side

Java code
  1. # vi/etc/hosts
  2. # Amanda Server-side settings
  3. 192.168.21.91 amcnt
  4. # vi/var/lib/amanda/.amandahosts
  5. # Amanda Server-side settings
  6. amcnt Root amindexd amidxtaped #restore用
  7. amcnt amandabackup Amdump #backup用
  8. # Mkdir-r/etc/amanda/demo
  9. # Cd/etc/amanda/demo
  10. # cp/var/lib/amanda/example/amanda.conf.
  11. # VI Disklist
  12. Amsrv/usr/data Comp-user-tar
  13. # Vi/etc/xinetd.d/amanda
  14. Disable = no
  15. #/etc/init.d/xinetd Restart



Client Side

Java code
  1. # vi/etc/hosts
  2. # Amanda Client Side settings
  3. 192.168.21.90 amsrv
  4. # vi/var/lib/amanda/.amandahosts
  5. # Amanda Client Side settings
  6. Amsrv Amandabackup Amdump
  7. # Mkdir-r/etc/amanda/demo
  8. # Cd/etc/amanda/demo
  9. # VI Amanda-client.conf
  10. Conf the name of the "demo" # Server-side setting
  11. Index_server "Amsrv"
  12. Tape_server "Amsrv"
  13. Tapedev "FILE:/VAR/LIB/AMANDA/VTL"
  14. Auth "Bsdtcp"
  15. Ssh_keys ""
  16. Unreserved-tcp-port 1025,65535
  17. # Vi/etc/xinetd.d/amanda
  18. Disable = no
  19. #/etc/init.d/xinetd Restart



Synchronize regularly

      1. # CRONTAB-E
      2. 0 * * 2-6/usr/sbin/amdump Demo

Build CentOS 6 Server-rsync, Amanda

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.