File Replication between two Linux Hosts

Source: Internet
Author: User

File Replication between two Linux Hosts

The scp command can be used to copy files between two Linux Hosts. The basic format is:

Scp [optional parameter] file_source file_target

1. Copy an object

Command Format:

Scp local_file remote_username @ remote_ip: remote_folder
Scp local_file remote_username @ remote_ip: remote_file
Scp local_file remote_ip: remote_folder
Scp local_file remote_ip: remote_file

2. Copy a folder

Scp-r local_folder remote_username @ remote_ip: remote_folder
Scp-r local_folder remote_ip: remote_folder

For example, copy the local/hz/folder to the/directory of 10.3.93.213 and enter the following command:

Scp-r/hz/root@10.3.93.213 :/

Copy files between two Linux Hosts using scp

This article permanently updates the link address:

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.