I'm trying to mass-move 50+ domains to a new server, which will then get the IP address of the old server, and hit a bug in mass-restore, while missing a function to do it easily:
As there is no "migration" utility for doing this painlessly in VirtualMin Pro (or did I miss something?), I last-resorted to do a "backup-almost-all-servers-TO-ONE-FILE" then to do a "restore-all-servers-from-that-one-file" strategy.
I selected backup-all-except 3 domains from a large account to keep backup-size and restore-time reasonable for all other domains.
The backup worked, but at restore, it hangs when trying to restore an alias-domain with the error below.
Cause is that the main domain didn't yet get restored, and it tries to restore the alias domain (as it was in the gz file before that one) !!!
I checked the sequence of backup: the domain alias gets backed-up at very end, which is correct. BUT: as virtualmin generates the .gz file at very end, the domains get re-sorted alphabetically in that file, instead of keeping the backup order, so that restore can happen.
So mass-restore failed as follows: blog.domain.com was alias from domain.com (name changed):
Restoring backup for virtual server blog.domain.com .. Restoring virtual server password, quota and other details .. .. done Re-creating records in DNS domain .. .. domain not found!
Re-starting DNS server .. .. done Applying web server configuration .. .. not running!
Re-loading Webmin .. .. done
.. failed! See the progress output above for the reason why.
Needless to say, with 8 gigs for 50+ servers, it is very slow, and when we finish exercising and do it for real, it will lead to about 2 hours downtime, which is a pain. Any suggestions to do it better are welcome. We can't move the disk as we are migrating Linux OS as well.