rsync配置

来源:互联网 发布:网络监察电话是多少 编辑:程序博客网 时间:2024/05/01 15:44

这里的rsync只是手动的!!

一般安装好的linux中直接输入rsync就可以搞定,成功后会出现以下的界面

<span style="font-family:KaiTi_GB2312;font-size:18px;">rsync  version 3.0.9  protocol version 30Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.Web site: http://rsync.samba.org/Capabilities:    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,    append, ACLs, xattrs, iconv, symtimesrsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and youare welcome to redistribute it under certain conditions.  See the GNUGeneral Public Licence for details.rsync is a file transfer program capable of efficient remote updatevia a fast differencing algorithm.Usage: rsync [OPTION]... SRC [SRC]... DEST  or   rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST  or   rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST  or   rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST  or   rsync [OPTION]... [USER@]HOST:SRC [DEST]  or   rsync [OPTION]... [USER@]HOST::SRC [DEST]  or   rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect</span>
这就是成功的,假如没有的话,yum install rsync,应该就可以搞定,我没试过,你可以去尝试一下!!

重启命令

rsync--daemon

修改配置,位置vi  /etc/rsyncd.conf


复制文件命令

<span style="font-family:KaiTi_GB2312;font-size:18px;">rsync-参数用户名@同步服务器的IP::rsyncd.conf中那个方括号里的内容本地存放路径如:rsync -avzP root@192.168.1.89::ftp /home</span>
到了这里rsync也是告了一段落,欢迎高手指正!!



0 0
原创粉丝点击