Linux sync Software

Source: Internet
Author: User
Tags rsync scp command secure copy

Linux sync software: Scp,rsync,inotify,sersync

I. SCP

The SCP is secure copy, which is used for remote file copying. The data transfer uses SSH and uses the same authentication method as SSH, providing the same security guarantee. Unlike RCP, the SCP requires that you enter a password or password when verification is required.

The SCP command is the most convenient and useful command in SSH, just imagine, the direct transfer of files between the two servers, only with the SCP a command to completely solve. You can run #scp servername:/home/ftp/pub/file1 as root on a single server./This will send the file/home/ftp/pub/file1 on the other server directly to the current directory of the machine. , of course, you can also use the #scp/tmp/file2 servername:/boot to send the files on this machine/tmp/file2 to another machine's/boot directory. And the entire transfer process is still encrypted with SSH.

The simplest applications are as follows:

SCP Local user name @ip address: File name 1 remote user name @IP address: file name 2

[Local User name @IP address:] Can not be entered, you may need to enter the password for the remote user name.

Several parameters that may be useful:

-V is the same as-V in most Linux commands to show progress. Can be used to view connections, certifications, or configuration errors.

-C Enable compression option.

-P Select the port. Note-P has been used by RCP.

-r recursively Copy entire folder (contains subfolders)

For example:

1) Copy the/ETC/VIMRC file above the 192.168.1.1 to the local

[Email protected] packages]# SCP [email protected]:/etc/vimrc/tmp

2) Copy the local/ETC/VIMRC file to the TMP directory of the 192.168.1.1

[Email protected] tmp]# SCP/ETC/VIMRC [email protected]:/tmp

3) Copy the overall file with the-r recursive option

[Email protected] tmp]# scp/tmp [email protected]:/tmp

4) display time parameter-V

--from Baidu Encyclopedia SCP


Second, rsync

1. Rsync is the data under Unix-like systems Mirror Backup tools. Using the Fast incremental Backup tool remote Sync can be synchronized remotely, support local replication, or synchronize with other SSH and rsync hosts.

features

Edit

It has the following characteristics:

can be Mirror Save the entire directory tree and file system.

It is easy to keep the original file permissions, time, soft and hard links and so on.

Install without special permissions.

Fast: When you synchronize for the first time, rsync copies the entire content, but only the modified files are transferred the next time. Rsync can compress and decompress in the process of transmitting data , so it can use less bandwidth.

Security: You can use SCP, SSH and other means to transfer files, of course, you can also through a direct socket connection.

Support anonymous transmission, to facilitate the site mirror image.

2, centos7.3 above installation configuration rsync

Installing rsync

[[email protected] ~]# yum-y install rsync

Set the Rsync service to boot from

[Email protected] ~]# Systemctl enable RSYNCD

Turn on the rsync service

[Email protected] ~]# systemctl start RSYNCD

View the status of the Rsync service

[Email protected] ~]# systemctl status RSYNCD

3.

This article from "Doublelinux" blog, reproduced please contact the author!

Linux sync Software

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.