Cygwin rsync:如果本地文件没有';不存在。Don';t检查文件大小、时间、校验和等
我正在使用rsync将一百万个图像从我的linux服务器备份到我的计算机(使用Cygwin的windows7) 我现在使用的命令是:Cygwin rsync:如果本地文件没有';不存在。Don';t检查文件大小、时间、校验和等,cygwin,rsync,Cygwin,Rsync,我正在使用rsync将一百万个图像从我的linux服务器备份到我的计算机(使用Cygwin的windows7) 我现在使用的命令是: rsync -rt --quiet --rsh='ssh -p2200' root@X.X.X.X:/home/XXX/public_html/XXX /cygdrive/images 每当进程被中断,并且我再次启动它时,启动复制进程需要很长时间。 我认为它正在检查每个文件是否有任何更新 我的服务器上的图像创建后不会更改 那么,有没有更快的方法来运行该命令,以便
rsync -rt --quiet --rsh='ssh -p2200' root@X.X.X.X:/home/XXX/public_html/XXX /cygdrive/images
每当进程被中断,并且我再次启动它时,启动复制进程需要很长时间。
我认为它正在检查每个文件是否有任何更新
我的服务器上的图像创建后不会更改
那么,有没有更快的方法来运行该命令,以便在本地文件不存在时可以复制文件,而不检查文件大小、时间、校验和等
请建议
谢谢您是否尝试过此标志--它可能会有所帮助,但可能仍需要一些时间才能恢复传输:
--ignore-existing
This tells rsync to skip updating files that already exist on the destination (this does not ignore
existing directories, or nothing would get done). See also --existing.
This option is a transfer rule, not an exclude, so it doesn't affect the data that goes into the
file-lists, and thus it doesn't affect deletions. It just limits the files that the receiver requests
to be transferred.
This option can be useful for those doing backups using the --link-dest option when they need to con-
tinue a backup run that got interrupted. Since a --link-dest run is copied into a new directory hier-
archy (when it is used properly), using --ignore existing will ensure that the already-handled files
don't get tweaked (which avoids a change in permissions on the hard-linked files). This does mean that
this option is only looking at the existing files in the destination hierarchy itself.