欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/Agda, C++/Erlang/Lisp
Rsync
来自开放百科 - 灰狐
(版本间的差异)
第17行: | 第17行: | ||
and in /etc/inetd.conf add: | and in /etc/inetd.conf add: | ||
rsync stream tcp nowait root /usr/bin/rsync rsync --daemon --config=/etc/rsyncd.conf | rsync stream tcp nowait root /usr/bin/rsync rsync --daemon --config=/etc/rsyncd.conf | ||
− | + | ||
− | rsync -vzrtopg --progress | + | /etc/rsyncd.conf |
+ | uid = nobody | ||
+ | gid = nobody | ||
+ | use chroot = no | ||
+ | max connections = 4 | ||
+ | pid file = /var/run/rsyncd.pid | ||
+ | lock file = /var/run/rsync.lock | ||
+ | log file = /var/log/rsyncd.log | ||
+ | |||
+ | [www] | ||
+ | path = /home/www/ | ||
+ | comment = huihoo rsync site | ||
+ | ignore errors | ||
+ | read only = true | ||
+ | list = false | ||
+ | auth users = backup | ||
+ | hosts allow = 192.168.1.2/32 | ||
+ | secrets file = /etc/rsyncd.secrets | ||
+ | |||
+ | server运行 # rsync -daemon | ||
+ | |||
+ | client运行 /usr/local/bin/rsync -vzrtopg -delete -exclude “logs/”--exclude “conf/ssl.*/” --progress backup@192.168.1.3::www /home/www/backup/ | ||
==相关文档== | ==相关文档== |
2006年10月16日 (一) 22:39的版本
安装指南
获得源码: http://rsync.samba.org/ftp/rsync/rsync-2.6.8.tar.gz
tar zxvf rsync-2.6.8.tar.gz cd rsync-2.6.8, as root ./configure make make install
rsync --help
You can simply run rsync as a daemon, or you can have it started automatically by inetd. In /etc/services add:
rsync 873/tcp
and in /etc/inetd.conf add:
rsync stream tcp nowait root /usr/bin/rsync rsync --daemon --config=/etc/rsyncd.conf
/etc/rsyncd.conf
uid = nobody gid = nobody use chroot = no max connections = 4 pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log
[www] path = /home/www/ comment = huihoo rsync site ignore errors read only = true list = false auth users = backup hosts allow = 192.168.1.2/32 secrets file = /etc/rsyncd.secrets
server运行 # rsync -daemon
client运行 /usr/local/bin/rsync -vzrtopg -delete -exclude “logs/”--exclude “conf/ssl.*/” --progress [email protected]::www /home/www/backup/
相关文档
- 用rsync对网站进行镜像备份
- rsync examples - http://rsync.samba.org/examples.html
分享您的观点