Last update at :2024-07-10,Edit by888u
Today Snail met a netizen who wanted to migrate a website from one of his Alibaba Cloud ECS servers to another server. He originally thought it was an ordinary website, but it turned out that the data was about 90GB after being packaged and compressed. It's basically not much smaller, so normal wget downloading is definitely not possible and the efficiency is too low. Here I plan to use Alibaba Cloud's own intranet IP address, and then directly drag it to the intranet SCP.
First, preparations
1. Log in to your Alibaba Cloud account and see the intranet IP address corresponding to the ECS server. (Intranet IP of the server that packages the file)
2. Pack and compress the website directory that needs to be backed up, because I have already packed it here. In fact, I should not pack it, but directly SCP. Because the data is large, the packaging time is also very long, and it will also take time to decompress it later.
Second, SCP command transmission
1. Copy the directory to local
scp -r [email protected]Intranet IP address of the website:/home/wwwroot/copy website directory/currently copied website directory
2. Copy the package file to the local computer
scp [email protected]Intranet IP where the website is located:/home/wwwroot/copy website directory/laozuo.tar.gz/currently copied website directory
This execution is performed by SSH on the server we transferred in, and then we will be asked to agree and enter the password of the transfer server before starting the transfer. It seems that the speed is much faster than direct WGET, reaching 62MB/S.
Finally, wait and wait. After the transfer is completed, we can decompress it on the server.
Recommended site search: free all-purpose space application registration password retrieval, how to register company domain name, website space domain name, linux virtual host, php host space, managed host, agency service ip, bbs registration, Ministry of Information Industry registration, p>
发表评论