Back up data of dreamhost to Windows using rsync (cwrsync)

Source: Internet
Author: User
Tags key string rsync

Rsync has several packaged tools on Windows, such as deltacopy and unison. After comparison, I still think cxrsync is best used.
Advantages of cwrsync:
1) easy configuration. Crgwin library files have been packaged, And you can directly call the command for Synchronization After download and installation.
2) You can operate on the command line. It is basically the same as on Unix (deltacopy is graphical, and unison needs to be familiar with it ).

Procedure:
1) download and install cwrsync.
2) (optional, the security of dreamhost is so bad, it is better to log on with a password directly, hey) create a key, enter the command line mode, and call the ssh-keygen command to create a key. the storage location of the public key and private key is placed in the default location. Save the public key string ~ /. Ssh/authorized_keys file.
3) enter the command line mode and call the rsync command:CopyCodeCode: rsync -- exclude = "/home/Foo/tmp/"-avz foo@www.foobar.net: foobar.net/\ mysites \ www.jb51.net \

Note: -- exclude filters out irrelevant directories, such as cache information under the MT directory. Replace Foo and foobar as needed.

Finally, if you prefer to use Windows job scheduling, you can consider calling it. I never use it anyway.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.