rsync使用方法总结
2015-04-14 20:48
134 查看
rsync配置:/etc/rsyncd.conf
uid = osd
gid = osd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
[account]
max connections = 2
path = /srv/account
read only = false
lock file = /var/lock/account.lock
[container]
max connections = 4
path = /srv/container
read only = false
lock file = /var/lock/container.lock
[object]
max connections = 8
path = /srv/object
read only = false
lock file = /var/lock/object.lock
第一种方式“:”
osd@OSD-146:~$ rsync -avzH
osd@109.105.112.147:/data /tmp
osd@109.105.112.147's password:
receiving incremental file list
rsync: link_stat "/data" failed: No such file or directory (2)
sent 8 bytes received 74 bytes 23.43 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [Receiver=3.1.0]
rsync: [Receiver] write error: Broken pipe (32)
第二种方式:"::"
osd@OSD-146:~$ rsync -avzH -r ./test 109.105.112.147::object
sending incremental file list
test/
test/a
test/b
test/c
test/write.log
sent 7,066 bytes received 96 bytes 14,324.00 bytes/sec
total size is 317,795 speedup is 44.37
osd@OSD-147:/srv/object/test$ ll
total 332
drwxrwxr-x 2 osd osd 4096 4月 14 19:50 ./
drwxr-xr-x 7 osd osd 4096 4月 14 20:43 ../
-rw-rw-r-- 1 osd osd 7 4月 14 17:48 a
-rw-rw-r-- 1 osd osd 7 4月 14 17:48 b
-rw-rw-r-- 1 osd osd 7 4月 14 17:48 c
-rw-rw-r-- 1 osd osd 317774 4月 14 19:50 write.log
osd@OSD-146:~$ rsync -avzH -r ./test 109.105.112.147::object/node1
sending incremental file list
test/
test/a
test/b
test/c
test/write.log
sent 7,066 bytes received 96 bytes 14,324.00 bytes/sec
total size is 317,795 speedup is 44.37
rsync:http://man.he.net/man1/rsync
uid = osd
gid = osd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
[account]
max connections = 2
path = /srv/account
read only = false
lock file = /var/lock/account.lock
[container]
max connections = 4
path = /srv/container
read only = false
lock file = /var/lock/container.lock
[object]
max connections = 8
path = /srv/object
read only = false
lock file = /var/lock/object.lock
第一种方式“:”
osd@OSD-146:~$ rsync -avzH
osd@109.105.112.147:/data /tmp
osd@109.105.112.147's password:
receiving incremental file list
rsync: link_stat "/data" failed: No such file or directory (2)
sent 8 bytes received 74 bytes 23.43 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [Receiver=3.1.0]
rsync: [Receiver] write error: Broken pipe (32)
第二种方式:"::"
osd@OSD-146:~$ rsync -avzH -r ./test 109.105.112.147::object
sending incremental file list
test/
test/a
test/b
test/c
test/write.log
sent 7,066 bytes received 96 bytes 14,324.00 bytes/sec
total size is 317,795 speedup is 44.37
osd@OSD-147:/srv/object/test$ ll
total 332
drwxrwxr-x 2 osd osd 4096 4月 14 19:50 ./
drwxr-xr-x 7 osd osd 4096 4月 14 20:43 ../
-rw-rw-r-- 1 osd osd 7 4月 14 17:48 a
-rw-rw-r-- 1 osd osd 7 4月 14 17:48 b
-rw-rw-r-- 1 osd osd 7 4月 14 17:48 c
-rw-rw-r-- 1 osd osd 317774 4月 14 19:50 write.log
osd@OSD-146:~$ rsync -avzH -r ./test 109.105.112.147::object/node1
sending incremental file list
test/
test/a
test/b
test/c
test/write.log
sent 7,066 bytes received 96 bytes 14,324.00 bytes/sec
total size is 317,795 speedup is 44.37
rsync:http://man.he.net/man1/rsync
相关文章推荐
- (总结)Linux下使用rsync最快速删除海量文件的方法
- (总结)Linux下使用rsync最快速删除海量文件的方法
- 总结Android HAL层的使用方法
- AutoFac使用方法总结:Part I
- AutoFac使用方法总结:Part II
- AutoFac使用方法总结:Part III
- UIWebView - 使用方法总结
- Fragment使用方法总结
- Android——关于PagerAdapter的使用方法的总结(转)
- java构造函数使用方法总结
- Tapestry框架使用方法技巧总结
- Git和github使用方法总结
- SQLite3中自增主键相关知识总结,清零的方法、INTEGER PRIMARY KEY AUTOINCREMENT和rowid的使用
- 【VS开发】CListCtrl控件使用方法总结
- slf4j 使用方法---个人总结
- C语言中用于产生随机数的函数使用方法总结
- DevExpress GridControl使用方法总结
- 【Tesseract-OCR】在VS2010环境下使用的方法---精简快速入门之总结
- delphi使用IdHTTP模拟提交页面方法总结
- MySQL的FIND_IN_SET函数使用方法总结