`
rensanning
  • 浏览: 3558856 次
  • 性别: Icon_minigender_1
  • 来自: 大连
博客专栏
Efef1dba-f7dd-3931-8a61-8e1c76c3e39f
使用Titanium Mo...
浏览量:38337
Bbab2146-6e1d-3c50-acd6-c8bae29e307d
Cordova 3.x入门...
浏览量:608162
C08766e7-8a33-3f9b-9155-654af05c3484
常用Java开源Libra...
浏览量:683347
77063fb3-0ee7-3bfa-9c72-2a0234ebf83e
搭建 CentOS 6 服...
浏览量:89970
E40e5e76-1f3b-398e-b6a6-dc9cfbb38156
Spring Boot 入...
浏览量:402544
Abe39461-b089-344f-99fa-cdfbddea0e18
基于Spring Secu...
浏览量:69870
66a41a70-fdf0-3dc9-aa31-19b7e8b24672
MQTT入门
浏览量:92037
社区版块
存档分类
最新评论

搭建 CentOS 6 服务器(11) - rsync、Amanda

 
阅读更多
(一)rsync

Server端
# yum install rsync
# vi /etc/xinetd.d/rsync
    service rsync
    {
        disable = no
        flags           = IPv6
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/rsync
        server_args     = --daemon
        log_on_failure  += USERID
    }
# vi /etc/rsyncd.conf
    #--------------
    # Global options
    #--------------
    uid           = root
    gid           = root
    log file      = /var/log/rsyncd.log
    pid file      = /var/run/rsyncd.pid
    hosts allow   = 192.168.21.0/24
    hosts deny    = *
    dont compress = *.gz *.tgz *.zip *.pdf *.sit *.sitx *.lzh *.bz2 *.jpg *.gif *.png

    #--------------
    # Module options
    #--------------
    [tmp]
        comment      = rsync server
        path         = /tmp/rsync_folder
        use chroot    = true
        auth users   = rsync_user1, rsync_user2
        secrets file = /etc/rsyncd.secrets
        read only    = false
        exclude      = *.mp
        include      = *.mp30
# mkdir -p /tmp/rsync_folder
# vi /tmp/rsync_folder/a.txt
    test
# vi /etc/rsyncd.secrets
    rsync_user1:password
    rsync_user2:password
# chmod 600 /etc/rsyncd.secrets
# service xinetd restart


Client端
# yum install rsync 
# vi /etc/rsync.passwd 
    password
# chmod 600 /etc/rsync.passwd


确认
# /usr/bin/rsync -avz --delete --password-file=/etc/rsync.passwd rsync://rsync_user1@192.168.21.140/tmp /usr/local/rsynctest
    receiving incremental file list
    ./
    a.txt

    sent 82 bytes  received 156 bytes  476.00 bytes/sec
    total size is 5  speedup is 0.02
# ls -l /usr/local/rsynctest


定期同步
# crontab -e
    #每5分钟同步
    */5 * * * * /usr/bin/rsync -avz --delete --password-file=/etc/rsync.passwd rsync://rsync_user1@192.168.21.140/tmp /usr/local/rsynctest


(二)Amanda

安装
# yum list | grep "^amanda"
  2.6.1p2-9.el6_6 版本比较旧
# yum install amanda


安装3.3.7
# cd /usr/local/src
# wget http://www.zmanda.com/downloads/community/Amanda/3.3.7/Source/amanda-3.3.7-1.rhel6.src.rpm
# rpm -Uvh amanda-3.3.7-1.rhel6.src.rpm


Server端
# vi /etc/hosts
    # amanda server端设置
    192.168.21.91 amcnt
# vi /var/lib/amanda/.amandahosts
    # amanda server端设置
    amcnt root amindexd amidxtaped #restore用
    amcnt amandabackup amdump #backup用
# mkdir -R /etc/amanda/demo
# cd /etc/amanda/demo
# cp /var/lib/amanda/example/amanda.conf .
# vi disklist
    amsrv /usr/data comp-user-tar
# vi /etc/xinetd.d/amanda
   disable = no
# /etc/init.d/xinetd restart


Client端
# vi /etc/hosts
    # amanda client端设置
    192.168.21.90 amsrv
# vi /var/lib/amanda/.amandahosts
   # amanda client端设置
   amsrv amandabackup amdump
# mkdir -R /etc/amanda/demo
# cd /etc/amanda/demo
# vi amanda-client.conf
    conf "demo"          # server端设置的名称
    index_server "amsrv"
    tape_server "amsrv"
    tapedev "file:/var/lib/amanda/vtl"
    auth "bsdtcp"
    ssh_keys ""  
    unreserved-tcp-port 1025,65535
# vi /etc/xinetd.d/amanda
    disable = no
# /etc/init.d/xinetd restart


定期同步
# crontab -e
    45 0 * * 2-6 /usr/sbin/amdump demo
分享到:
评论

相关推荐

    CentOS6-Base-163.repo

    163的镜像文件CentOS6-Base-163.repo。CentOS6-Base-163.repo

    centos-release-scl-rh-2-3.el7.centos.noarch.rpm.zip

    压缩包含centos-release-scl-rh-2-3.el7.centos.noarch.rpm和centos-release-scl-2-3.el7.centos.noarch.rpm,主要用于centos7的gcc安装

    (CentOS7镜像)CentOS-7-x86-64-Minimal-2009.rar

    【标题】"(CentOS7镜像)CentOS-7-x86-64-Minimal-2009.rar" 提供的是一个基于Linux发行版的CentOS 7的最小化安装镜像,适用于创建虚拟机环境。这个版本特别针对系统管理员和开发者设计,包含了运行操作系统最基本...

    Centos-6-Vault-Aliyun.repo

    Centos-6-Vault-Aliyun.repo

    Centos7镜像-百度网盘下载链接

    CentOS-7.2-x86_64-DVD-1511 CentOS-7.3-x86_64-DVD-1611 CentOS-7.4-x86_64-DVD-1708 CentOS-7.5-x86_64-DVD-1804 CentOS-7.6-aarch64-Everything-1810 CentOS-7.6-x86_64-DVD-1810 CentOS-7.7-x86_64-DVD-1908 ...

    CentOS-7-x86_64-DVD-2003镜像文件

    # CentOS-7-x86_64-DVD-1810.iso CentOS 7.6 DVD 版 4G http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso # CentOS-7-x86_64-Everything-1810.iso CentOS 7.6 Everything版 10G ...

    CentOS-6.6-x86-64-bin-DVD1.iso镜像文件

    CentOS-6.6-x86_64-bin-DVD1.iso和CentOS-6.6-x86_64-bin-DVD2镜像文件百度云下载

    pgdg-centos96-9.6-3.noarch

    pgdg-centos96-9.6-3.noarch postgresql的依赖包postgresql的依赖包

    CentOS-6.3-i386-bin-DVD1-DVD2.iso下载地址

    Txt文件中包含 CentOS-6.3-i386-bin-DVD1.iso 和 CentOS-6.3-i386-bin-DVD2.iso 的官网下载地址 和百度网盘下载地址

    centos 6 安装 mantisbt-1.2.8 -- centos 7 安装 mantisbt-2.12.0.zip

    内容: 1、centos 6 安装 mantisbt-1.2.8 ; 2、 centos 7 安装 mantisbt-2.12.0.zip 3、mantisbt-2.12.0.tar.gz包; 4、MySQL-5.5.59-1.el7.x86_64.rpm-bundle.tar包

    CentOS-6.1-x86-64-bin-DVD1.iso

    CentOS-6.1-x86_64-bin-DVD1.iso CentOS-7-x86_64-bin-DVD2.iso CentOS-8.2-x86_64-bin-DVD1.iso 除DVD版还有各个minimal等版本提供高速下载 下载地址,提供了迅雷的高速下载通道,实测速度为31M/S,

    Centos7.6镜像文件:CentOS-7-x86-64-DVD-1810.iso

    标题中提到的“Centos7.6镜像文件:CentOS-7-x86_64-DVD-1810.iso”,首先需要明确几个关键词。CentOS 是一个企业级 Linux 发行版,它是基于 Red Hat Enterprise Linux (RHEL) 源代码编译而成的。CentOS 7.6 指的是 ...

    centos7.6.1810---镜像包docker

    centos7.6.1810---镜像包dockercentos7.6.1810---镜像包dockercentos7.6.1810---镜像包docker

    CentOS-7-x86-64-Minimal-2009.iso

    CentOS-7-x86_64-Minimal-2009.iso是一个针对x86_64架构系统的CentOS 7版本的ISO镜像文件。它包含了运行CentOS操作系统所需的最基本组件和软件包,相较于完整版或桌面版,它没有预装许多额外的应用程序和图形界面,...

    CentOS-7-x86-64-bin-DVD1.iso

    CentOS-6.1-x86_64-bin-DVD1.iso CentOS-7-x86_64-bin-DVD2.iso CentOS-8.2-x86_64-bin-DVD1.iso 除DVD版还有各个minimal等版本提供高速下载 下载地址,提供了迅雷的高速下载通道,实测速度为31M/S,

    CentOS-7-x86-64-DVD-2009.iso

    CentOS-7-x86-64-DVD-2009.iso

    CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包).rar

    CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)

    centos7.4 postgresql11-11.8 rpm 安装包

    centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包

    CentOS-7-x86-64-Minimal-2207-02.iso

    标题中的"CentOS-7-x86_64-Minimal-2207-02.iso"是指一个 CentOS 操作系统的最小化安装镜像文件,适用于 x86_64(即64位)架构的系统。"2207-02"可能代表发布日期或版本号,表示这是2022年7月的第二个版本。这个ISO...

    Linux+CentOS-7-x86-64-Minimal-2009.iso

    "Linux+CentOS-7-x86-64-Minimal-2009.iso" 是一个Linux发行版CentOS 7的最小化安装ISO镜像文件。CentOS是一个基于RHEL(Red Hat Enterprise Linux)源代码再编译的社区版本,它提供了与RHEL几乎相同的稳定性和安全...

Global site tag (gtag.js) - Google Analytics