rsync and use encryption process under Windows
Project Background:
Customers need to make a backup off-site environment, including backup database backup and file data, the basis to build a good environment has been previously, and tested;
The main tool used in file Overview
Which rsync_client and rsyncd file is packaged in advance, which contains some of the tools and scripts bat
openssh is an open source project can be downloaded at the official chain ( https://github.com/PowerShell/Win32-OpenSSH/releases )
Configuration and use
1, were uploaded rsyncd / rsync_client to the server and the client
2, the server upload and unzip to openssh / program file directories
3, encrypted (Executive install-shd.bat installed) installed in the default configuration file C: \ Programdata
4, modify the sshd configuration file to enable port 8703, delete group profile (or may not modify, personal habits)
5, the client generates a pair of keys, public key is added to the server authorized_keys
6, start the server openssh
7, the client runs synchronous
8, create a .bat file
9, timing synchronization job creation
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/