Migration Options (Omit files / MySQL Databases)
Due to the Centos EOL issue and the fact that the "Elevate to AlmaLinux" process won't work for us, we have to build a new VM and migrate our sites to it.
Q1) Some of our sites are huge and I don't want to copy all of that data to the new server. (I will move it later) is there a way to omit certain folders from the transfer process?
Q2) We use a separate mysql server which doesn't need to change. Is there a way to omit the databases from the transfer process?
-
I found one option - if I manually make a cpanel backup, copy it to the new server and restore it I can omit files from the backup. https://docs.cpanel.net/knowledge-base/backup/how-to-exclude-files-from-backups/
Not sure about the databases though.
0 -
I guess I could make a "Home Directory Backup" for each account individually - these don't include the database.
So, combining this technique with setting a local exclude file for each account will achieve what I need.
If anyone knows an easier way pelase let me know :)
0 -
You should use Transfer Tool which can transfer most of your software configuration files bundled with cPanel (like Apache, Exim etc...) as well as your accounts.
https://docs.cpanel.net/whm/transfers/transfer-tool/
There is no option to exclude certain folders though. Your best option would be to move out the folders of the account's root which you don't want to move then use Tranfer Tool to copy over the accounts.
If the remote MySQL profile is active on the server then it won't move the databases I believe but you can just de-select the MySQL databases option in Transfer Tool so they wont be moved then.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services1
Please sign in to leave a comment.
Comments
3 comments