Linux uses SCP command to back up files SCP copy files _ftp server

Source: Internet
Author: User
Tags file copy pack scp command

For some reason, need to change a VPS, so need to transfer files for the server. But when I was in the original server to pack the things, the problem comes, the package is not half, the hint server space is insufficient! This last time because the space is not enough servers are down, then how to do? There's no way to pack if there's not enough space! Then suddenly think of SFTP, because I did not install FTP server, has been using SFTP to when FTP, so the internet search for a while, and really found an SCP command. It is also very simple to use, the old server IP is 204.152.221.90, to the above/home/wwwroot file copy, then on the new server execution:

Copy Code code as follows:

Scp-r 204.152.221.90:/home/wwwroot/home/wwwroot

Then ask if you want to save the key, enter Yes and then press ENTER, and then ask you to enter 204.152.221.90 the server's root password, and then start copying, ash is often useful!

Note: If you are prompted to "Scp:command not found" in the use procedure, your server does not have an SCP installed, please use the following command to install it. Also note that when using the SCP, two servers are required to install the SCP, and no one side is not installed to normal use:

Copy Code code as follows:

Yum-y Install Openssh-clients

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.