Copying files between two Linux Hosts and copying between two linux Hosts

Source: Internet
Author: User

Copying files between two Linux Hosts and copying 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 :/


How to copy files from two LINUX Hosts

Samba and ftp are all possible. You can also ssh to another machine on one machine and copy the file directly. This is what I usually do.

Shell scripts for file synchronization between two linux Hosts

If it is a Ubuntu System and the computer is connected to the Internet, it is easy:
With cloud storage technology, Ubuntu One allows users to synchronize and share files between different computers.

Ubuntu One in the latest version of Ubuntu 12.10 provides the Ubuntu One folder in the user directory. Adding, updating, or deleting the folder will synchronize the server in real time, there is no difference between using and operating local files.
Ubuntu one has a windows client.

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.