D
D
Dmitry Kalinin2017-08-15 12:48:08
linux
Dmitry Kalinin, 2017-08-15 12:48:08

How to do full content migration of CentOS server?

Good afternoon. Tell me how you can do a complete transfer of the server with all the settings and content from one vps to another. So that in fact it remains only to deploy everything on a new vps and all installed distributions, settings, etc. rebuilt on a new one. I read that it is possible through rsync in CentOS, but I did not find a complete guide. Does the virtualization system somehow affect the backup, it is different for 2 vps. Or does it only affect when you make a full server snapshot? In general, please tell me the best way to do it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2017-08-15
@myrecs

Rsync everything with the preservation of rights except for the system directories
There is one command, so no one writes manuals

S
Saboteur, 2017-08-15
@saboteur_kiev

Posix file systems (i.e. all standard file systems on Linux/Unix) work so that an open file can be safely copied. Therefore, you can safely open and delete the executable files of running processes.
This allows you to stop nothing, and just copy all the content.
Critical places that can be copied incorrectly are mutable data (logs, databases), caches.
In your case, when copying the system, you can forget about logs and caches. The bases (and the services that depend on those bases, if any) must be stopped.
And copy everything with the usual rsync from root while maintaining rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question