Back up the script on the client:
-----------------------------
@echo off
Echo starts syncing data, wait a minute ...
Echo.
echo Backup remote 172.16.0.2 filestore data to local start ...
Echo.
Set localtime=%date:~0,4%_%date:~5,2%_%date:~8,2%_%time:~0,2%_%time:~3,2%_%time:~6,2%
Rsync-avzp--progress--delete rsync://172.16.0.2:8173/data/cygdrive/d/wxshop/filestore >> D:\cwRsyncrsync_% Localtime%.log
Echo.
echo Data Sync complete
Echo.
------------------------------------------
The script notes that:
In Rsync://172.16.0.2:8173/data/cygdrive/d/wxshop/filestore, data is a label created on the server side, followed by a space key, and/cygdrive is required
/cygdirve/d/wxshop is actually the way Linux is written, need to pay attention to, at the same time under d:\ if you need some longer such as program Files (X86) This error-prone, you can use a simple way.
Refer to the contents of the annex for specific methods,
The contents of the annex are excerpted from the Internet, if there is a copyright issue please inform
This article is from the "Sulan Network" blog, so be sure to keep this source http://zhangfang526.blog.51cto.com/8588740/1908730
Windows folder synchronization Cwrsync