Home | Mirror | Search | 雜文 | ITEYE 博客 | OSChina 博客 | 51CTO 博客

第 64 章 File Synchronize

目錄

64.1. 跨伺服器檔案傳輸
64.1.1. scp - secure copy (remote file copy program)
64.1.2. nc - TCP/IP swiss army knife
64.2. rsync - fast remote file copy program (like rcp)
64.2.1. 安裝Rsync與配置守護進程
64.2.1.1. install with source
64.2.1.2. install with aptitude
64.2.1.3. xinetd
64.2.2. rsyncd.conf
64.2.3. upload
64.2.4. download
64.2.5. mirror
64.2.6. step by step to learn rsync
64.2.7. rsync examples
64.2.7.1. rsync delete
64.2.7.2. backup to a central backup server with 7 day incremental
64.2.7.3. backup to a spare disk
64.2.7.4. mirroring vger CVS tree
64.2.7.5. automated backup at home
64.2.7.6. Fancy footwork with remote file lists
64.2.8. rsync for windows
64.2.9. 多進程 rsync 腳本
64.2.10. rsync 參數說明
64.2.10.1. --bwlimit=KBPS limit I/O bandwidth; KBytes per second
64.2.10.2. -e, --rsh=COMMAND specify the remote shell to use
64.3. tsync
64.4. Unison File Synchronizer
64.4.1. local
64.4.2. remote
64.4.3. config
64.5. csync2 - cluster synchronization tool
64.5.1. server
64.5.2. node
64.5.3. test
64.5.4. Advanced Configuration
64.5.5. 編譯安裝
64.6. synctool

64.1. 跨伺服器檔案傳輸

64.1.1. scp - secure copy (remote file copy program)

限速1M

# scp -l 1000 /www/index.html root@172.16.0.1:/www
		

指定 identity_file 檔案

scp -i /path/to/id_dsa user@host:/path/to/ceph.conf $conf
		

64.1.2. nc - TCP/IP swiss army knife

tar 通過nc發送到另一端

# Server
$ tar cf - win98 | nc -l -p 5555

# Backup Machine
nc server_ip/server_doman_name 5555 | tar xf -