Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows folder synchronization cwRsync

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report