Record the process of restoring the mount disk/data disk download and backing up website data

888u

Last update at :2024-06-17,Edit by888u

Today Snail met a netizen who told him that he was messing with the Tencent Cloud server. But he was lucky because he purchased a separate data disk when he purchased the server, and then built all the website data in the data disk. . This time I struggled with it and reinstalled the system, thinking that the website data disk was automatically mounted (how can there be so much automaticity).

The current solution is to remount his original data disk that may still exist into his reinstalled system. It is estimated that the WEB environment and website cannot be fully restored, but at least you can get the website data back. This can at least reduce losses. So Snail asked him to back up the image before solving the problem. Otherwise, if he made a mistake, he would be in big trouble and he couldn't afford the compensation.

First, check the drive letter status

After logging in remotely, Snail saw that this friend’s server had a default 50GB system disk. I didn't see the drive letter he said was automatically mounted.

Second, check whether there is a mounted disk

You can see that there is a 10GB data disk. I hope he has not touched this disk. He is going to mount it in a directory and check whether there is data there.

Third, mount to the system

mkdir /wwwmount /dev/vdb1 /wwwecho \\’/dev/vdb1 /www ext3 defaults 0 0\\’ >> /etc/fstab

The directory selection here is very important, because there is no WWW directory in his new system, so I will create a new WWW directory and then mount it.

Fourth, check the drive letter status

It seems that I am lucky. I saw that the mount disk came out and there is 2.5GB of data. I guess the data is in it.

Fifth, check website data

Here we see that the data exists, and there is also this netizen’s website in wwwroot. It seems that he is quite lucky. Even if the WEB environment cannot be restored directly, the website data is saved. In addition to the automatic daily backup set up by this friend, you can see that there are daily backup compressed packages in the backup.

In summary, with this simple process, the data disk can be restored and the backup data can be downloaded.

Recommended site search: my IP, Korean server recommendation, domain name registration center, domain name server, website registration domain name query, vps to IP, US website space, overseas virtual host space, query whether the domain name is registered, check the address by IP,

Record the process of restoring the mount disk/data disk download and backing up website data

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码