Recently requested by the company, the need for remote transmission and backup of file data, wrote an article on the SSH, SCP and rsync application configuration of the whole process, may be too wordy, but mainly to want to do not miss each process
Recently requested by the company, the need for remote transmission and backup of file data, wrote an article on the SSH, SCP and rsync application configuration of the whole process, may be too wordy, but mainly to want to do not miss each process
The use of SCP under LinuxThe SCP is secure copy, a command that is used to remotely copy files under Linux.Sometimes we need to get a file on a remote server that does not configure an FTP server or share, and does not have access to a file in a
Scp
Scp2 is used to securely copy files from the network. It uses ssh2 for data transmission: it uses the validation method and provides the same security as ssh2.
This may be the easiest way to copy files from a remote machine. Let's assume that
ScpScp2 is used to securely copy files from the network. It uses ssh2 for data transmission: It uses the validation method and provides the same security as ssh2. This may be the easiest way to copy files from a remote machine. Let's assume you want
Using SCP in Linux does not require a password to transfer files
I suddenly found that there was no backup file in the backup directory on the backup server. I checked it carefully and found that the scp command required a password. I have
rsync Command
#rsync-av--progress/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/
[above command] can realize the machine with a progress bar prompt copy, can realize different machine with progress bar prompt copy, can copy multiple files
SCP Command
#
Rsync command
# Rsync-Av -- Progress/mnt/yidong2/full20100526.tar.gz/mnt/yidong1/
[The above command] the local machine with a progress bar prompt copy can be achieved, different machines with a progress bar prompt copy, you can copy multiple files
For a gigabit network, the bandwidth is about 125 M/s, and the scp speed is about 40 M/s. It takes about 2 hours to restore the database in full mode (about 300 GB, this situation is unacceptable;
To speed up SCP transmission, consider the
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.