0
0
0xC0CAC01A2018-11-29 00:46:19
linux
0xC0CAC01A, 2018-11-29 00:46:19

How to painlessly move from one VDS hosting to another?

There is VDS hosting on CentOS with several projects. How to painlessly move to another hosting? Is there a script that copies everything with one command?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Softer, 2018-11-29
@Softer

No, there is no script. But everything is not so difficult. You can even move with minimal downtime.
Something like this:
1. Raises the software on a new server
2. Exchange SSH keys between servers
3. Copy files with rsync
4. Transfer the database, you can directly (dump here, and exhaust through "|" there)
5. Check everything
6. We are preparing the nginx config so that everything that comes to the old server is proxied to the new one
6. A couple of times we do additional. sync files if projects are loaded. To make the final sync faster.
7. Turn off the projects in the old place
8. Set the database to overflow on the new one (the data is already outdated after step 4.)
9. Synkakaem files for the last time.
10. Run nginx on the old
11. Check that everything works
12. Change DNS records
13. Wait for 2 until requests stop going to the old server
14. We extinguish the old server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question