• rsync


    操作背景:750GB数据,一次是局域网内主机迁移,一次同主机磁盘内迁移。

    采用rsync,加深了认识。

    局域网内主机迁移,主要讲下配置文件的书写。

    客户端seafile-data 10.9.156.5
    服务端seafile-data 10.9.52.215

    服务端vim /etc/rsyncd.conf

    #######################

    uid = root
    gid = root
    use chroot = no
    max connections =5000
    timeout = 600
    pid file = /var/run/rsyncd.pid
    lock file = /var/run/rsync.lock
    log file = /var/log/rsyncd.log
    ignore errors
    read only = false
    list = false
    hosts allow = 10.9.0.0/16
    hosts deny = 0.0.0.0/32
    auth users =
    secrets file = /etc/rsync.password #touch /etc/rsync.password 和 vim /etc/rsync.password 和 chmod 600 /etc/rsync.password
    [backup]
    path = /opt/seafile/seafile-data

    #############################

    局域网客户端使用如下命令传送文件
    rsync -avz /opt/seafile/seafile-data/* root@10.9.52.215::backup --password-file=/etc/rsync.password

    同主机磁盘内迁移

    rsync -az seafile-data/ /opt/seafile-data/seafile/seafile-data

    必要的时候,可以结合监控,计算迁移时间。

    一定要在screen下进行。

  • 相关阅读:
    zookeeper安装教程
    CentOS7服务管理(重启,停止,自动启动命令)
    redis配置文件详解
    阿里云 CentOS7安装redis4.0.9并开启远程访问
    rpm命令
    wget命令
    yum命令
    maven项目debug调试不能够进入源码问题解决
    8-字符串
    7-数组
  • 原文地址:https://www.cnblogs.com/ccielife/p/10951611.html
Copyright © 2020-2023  润新知