�������Ҫ��һ̨�·������ϲ������ܶණ������ֱ�Ӵӱ�ķ������ϱ��������������������ذ�װ��
����ʹ��rsync�������Ҫ����rsync����װ�� “Դ������” ��������̲ο������������ӡ�
Ȼ����“Դ������”������rsync.conf�ļ���һ����/etc/rsyncd.conf��
�ڸ��ļ�������������䣺
[liujian]
path=/data1/liujian/
uid=root
gid=root
read only = no
hosts allow = 127.0.0.1/16 *****/255.255.255.0
������������usr/bin/rsync --daemon --config=/etc/rsyncd.conf
Ȼ���� “Ŀ�������”���������rsync -avzP root@**.**.**.**::liujian /data1/liujian/test/ ������*******Ϊ“Դ������”IP��
Ȼ�����û������ͻῴ���������ˡ�
�� rsync ����˵���
Rsync configure:
����һ��
ignore errors
˵�������ѡ����ü��ϣ������ٺܶ�crontab��ʱ����������������Ҳδ��֪����Ϊ�㲻��������ȥ��ÿʱÿ��ȥ��log��������������ִ���ļ�����Ի�ܸߣ���Ϊ�κδ�����Ŀ��ϵͳ������IO����һ��ƿ��
Rsync error��
����һ��
@ERROR: auth failed on module xxxxx
rsync: connection unexpectedly closed (90 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
˵����������Ϊ�������ô��ˣ�������ɹ������һ��rsync.pwd�����ͷ��Ƿ�ƥ�䡣���з�������û����rsync ����Ҳ��������������
�������
password file must not be other-accessible
continuing without password file
Password:
˵����������Ϊrsyncd.pwd rsyncd.sec��Ȩ���ԣ�Ӧ������Ϊ600���磺chmod 600 rsyncd.pwd
��������
@ERROR: chroot failed
rsync: connection unexpectedly closed (75 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
˵����������Ϊ���� rsync.conf �����õ� path ·�������ڣ�Ҫ�½�Ŀ¼���ܿ���ͬ��
�����ģ�
rsync: failed to connect to 218.107.243.2: No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]
˵��������ǽ����£��������ȳ��رշ���ǽ���Ŵ��Ļ���������������������S����C������ignore errorsѡ������Ҳ�ᵼ��
�����壺
@ERROR: access denied to www from unknown (192.168.1.123)
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
˵��������������ԣ�������ѡ��host allow�����⣬��ѧ��ϲ��һ������������һ�����ã�Ȼ��ģ������ͬһ������ʹ����
��������
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(244) [generator=2.6.9]
rsync error: received SIGUSR1 (code 19) at main.c(1182) [receiver=2.6.9]
˵�������´��������Ƿ���˷���û�б���������������������ȥ�������Ƿ���������Ȼ��鿴�� /var/run/rsync.pid �ļ��Ƿ���ڣ���ɴ�ķ�����ɱ���Ѿ������˷���Ȼ���ٴ�������������ýű�����ϵͳ��������Ȼ��shutdown -r now������
�����ߣ�
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(604) [sender=2.6.9]
˵����ԭ����Ŀ¼��û�����ݴ���
������£�
�����Linux��ʹ��rsync��//m.ajphoenix.com/linux/10292.html
����rsync���������//m.ajphoenix.com/linux/109.html
Linux��ʹ��rsync�����ɾ�������ļ��ķ�����//m.ajphoenix.com/linux/6045.html