zoukankan      html  css  js  c++  java
  • 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下进行。

  • 相关阅读:
    windows-DLL注入
    HDU 2148 Score
    HDU 2133 What day is it
    HDU 2112 HDU Today
    HDU 2187 悼念512汶川大地震遇难同胞——老人是真饿了
    HDU 2124 Repair the Wall
    HDU 2117 Just a Numble
    HDU 2114 Calculate S(n)
    HDU 2115 I Love This Game
    HDU 2104 hide handkerchief
  • 原文地址:https://www.cnblogs.com/ccielife/p/10951611.html
Copyright © 2011-2022 走看看