the company uses Aliyun"s ECS server, which used to be a server (centos7) + a disk, and the environment and code were all put together. Once, when configuring the environment, the system file was deleted by mistake, so that the system could not boot. Later, the data from the disk was taken out, and the environment was reinstalled in the server that put the mysql data and project code in the heart. It took a day before the website could be accessed.
restart Aliyun today. As a result, all the files and environment of the server are inexplicably restored to the code that went wrong a few months ago. The data accessed by users are all the code from a few months ago, and Ali Yunfang doesn"t know why. Fortunately, this time the database files were backed up to other disks to recover the data.
I just want to ask, how should the project be deployed? for example, if you configure a file now, and then accidentally delete the system file, people cannot access the server, but the data on the data disk is fine
.
may not describe very clearly, draw a diagram: I do not know if this is better, can avoid data loss caused by server problems, and can recover faster.
the company is a small company, but also the first job, the company is only a programmer, I do not have much experience, I hope you can give some suggestions, thank you.