Get the App
SLTechnology News&Howtos  ›  Servers  › 

Windows folder synchronization cwRsync

Shulou Source: shulou.com Published: 2022-06-02 16:48:55 10月03日 Update

Script backed up on the client:

-

@ echo off

Echo starts to synchronize data, please wait a moment.

Echo.

Echo backup Filestore data in remote 172.16.0.2 to start locally.

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 synchronization completed

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 spacebar, and / cygdrive is required

/ cygdirve/d/wxshop is actually written as linux, which should be noted. At the same time, if you need something longer, such as program files (X86), which is error-prone, you can use a simple way.

For specific methods, see the contents in the attachment.

The content in the attachment is extracted from the Internet. If you have any copyright questions, please let us know.

Attachment: http://down.51cto.com/data/2366526

Tags: Data attachments synchronization content at the same time backup mode script Internet writing client client method is on server label copyright space spacebar followed by Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Docker Redmi vpn