server transfer/backups.

spacecabbie

Verified User
Joined
Oct 11, 2019
Messages
149
Location
The Netherlands
Ok so I am presuming as always i am a complete retard and doing something wrong.

BUT,

Reading the forum and how to the procedure is more or less this:

system backup sysbk and user/reseller backups.
Install new server.
Restore sysbk tar bij tar this was not funny.... some had tar within a tar and one....
copy the config from custom build before install DA and it should build the system with options as it was.
restore user/reseller backups the usual way.

Ok. Seems legit.
This is what happend.
Installed centos 8 minimal
update and install pre packages.
copy conf of custom build installed DA.
Da installed default/incorrect IT was not the same config as old install I blamed it on the fact that it seems custombuild does not fetch packages.
Restored sysbk backup BUT only configs for DA php mysql (and db's) apache nginx and custombuild I dare not to restore a ful /etc since its from centos 7 to 8
dit a rebuild all looked like it restored as good as it gets still not everything.

Result:
Filerights over several services incorrect quickly fixed but still unsure if there are more but that are just not throwing errors.
all plugins still required manual install again.
someplugin related dnf packages not auto installed.
possibly more as it is hard to tell.
IF this is the correct way how did i fuck it up or is this to be expected ?

What is a better/other/right way?
I just like to make a backup and restore with one click.
Of Course its not that simple but a script can check installed packages save that list on the new system. If i could write scripts sigh....
But still you have to hand it to windows they do have backup nailed.

The commercial backup plugins do they handle it better?
 
I use reseller accounts to provision shared hosting accounts on the reseller shared IP (for various reasons) (on my first 2 installs only I have accounts on the main IP but then I learned) it allow to do migration on small batches and in acceptable for maintenance time, IPs can failover. And is use cluster - clients are given 2 slaves IP s for dns (main server dns is only used to sync with cluster) I'm migrating to a newer setup (small private cloud)

I did a clean install CloudLinux 8 + plugins + a new license I use for migration as DA is very slow on migrating licenses, ... and start to to planing how the migration will went

My initial plan was to do a migration in cPanel migration tool style, Create a backups from the Admin Backups and selecting ftp as destination to server 2, while excluding domains dir and mail dir , restore that backups do rsync of the home folder from the old server ...

However I notice there is not reseller with more than 25 GB backups and backups went fast, so I went to migrate full accounts - first i recreate reseller account only on the new server, detach dns from old one (new is not attached) , stop a rereller IP to not go out of sync ... do admin backups (full per reseller users) using ftp destination to the new server... there do a restore there , attach the IP to new VM and set it as reseller shared one set sites to use it...

As backups appear one by one there I think I could speed up the process by starting to extract first one when you get some of them
 
I normally first install, and configure the new server. Some things from directadmin.conf and custombuild I do after installation. Like DKIM implementation, Letsencrypt and spamassassin.
When ready I use admin backup/transfer to move all accounts and packages to the new server.
I don't use FTP because that can slow down the process. I create the backups locally and then transfer them via rsync to the correct directory at the new server.

There are other methods in which you can do mail later with rsync for example. But I always work at night with transfers so nobody has problems.
 
Don't use system backup unless you want to manually restore files.

The backup is not for installing the operating system, DA, or any plugins. The admin backup system is for restoring user accounts only.
 
Back
Top