Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Encryption synchronization under Windows

Shulou Source: shulou.com Published: 2022-06-01 01:56:27 10月04日 Update

Background introduction of rsync usage and encryption process under Windows:

Customers need to make a backup environment in different places, including database and file data backup. The basic environment has been built in advance and passed the test.

Overview of the files mainly used by the tool

The rsync_client and rsyncd files are packaged in advance and contain the corresponding tools and some bat scripts

Openssh is an open source project that can be downloaded from the official chain (https://github.com/PowerShell/Win32-OpenSSH/releases)

Configuration and usage process

1. Upload rsyncd/rsync_client to the server and the client respectively

2. Upload openssh from the server and decompress it to the / program file directory

3. Encrypt (perform install-shd.bat installation) configuration files are installed in C:\ Programdata by default

4. Modify sshd profile port to enable 8703, delete group profile (can not be modified, personal habit)

5. The client generates a pair of keys and adds the public key to the server authorized_keys

6. Start the server openssh

7. The client runs synchronization

8. Create a .bat file

9. Create a timing synchronization task

Rsync.bat

C:\ rsync_client\ bin\ rsync.exe / cygdrive/d/-aAH-- numeric-ids-- safe-links-- partial-- quiet-- rsync-path=C:\ rsyncd\ bin\ rsync.exe-e'"C:\ rsync_client\ bin\ ssh.exe"-p 8703-I C:\ rsync_client\ home\ Administrator\ .ssh\ id_rsa-T-x-o Compression=no-o StrictHostKeyChecking=no' user@host:/cygdrive/d/

Tags: File customer service configuration backup client encryption synchronization tools data environment process project personal task public key foundation key remote database Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL vpn Shulou Technology Linux