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.