These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for virtualmin migration on the new forum.
hello all -
i would like to migrate my virtualmin server. i was looking at this post (yes i tried to research this first)
http://www.virtualmin.com/documentation/system/migrate
is there an option to NOT move any user data, webpages, etc, but just all the virtualmin/webmin files, and particularly the httpd.conf file ? i want to move the /home/ directories myself.
also, i believe i am ready to wear a virtualmin tee-shirt.
thank you all very much!
Howdy,
You can always tune what you backup. If you go into Backup and Restore -> Backup Virtual Servers, you can generate a backup that doesn't contain the home directory data.
-Eric
hey eric !
so i take it that its a simple matter of running backup on the old server, and then running restore on the new one, after moving the backup file?
i am trying all this out now as a test on a virtualbox centOS installation.
(just what happens when newbies start acting smart around here?)
Yup, the migration process you linked to in your initial post is just a matter of generating a backup, and copying that to the new server.
If you don't want to include the home directory backups in that, no problem, just uncheck that particular feature during the backup process.
-Eric
hey - it appears the option you sent me to ONLY does the data in the virtual server, since i got this message:
"Backup failed : No domains selected to backup"
again, what i want to do is to migrate all my virtualmin/webmin stuff, but none of the data. i especially want to migrate my httpd.conf information.
in other words, imagine i just cloned my entire server, and then removed everything inside the "/home/" directory in the clone. and then i went through and created the most simple index.html underneath each home directory for testing purposes. that's what i wish to do, just migrate the webmin/virtualmin stuff only...
i am tempted to try Webmin-->BackupConfigurationFiles-->BackupNow
but thought i would ask all the wizards first!
Yup! That's what would happen by performing a backup with the "Server's home directory and web pages" feature unchecked.
That will backup all the Virtualmin data, domain meta data, databases, email address, and such -- but not the home directory data.
When generating that backup, make sure that under the "Servers to save" box, that it's set to "All virtual servers".
-Eric
as you can see from the attachment virtualmin-1.png, i have UNCHECKED the 'servers home directory and web page'
but i am still getting very large TAR files of my home directory files (please see virtualmin-2.png)
any ideas whats going on here?
UPDATE: after all is said and done, it falls over! please see virtualmin-3.png
Copying Apache virtual host configuration .. .. no Apache virtual host found! Backup failed! See the progress output above for the reason why.
Howdy,
There's a radio button above those backup options (seen in your first screenshot)... it's set to "Backup all Features" by default. When you change any of the feature checkboxes, you'd want to set that radio button to "Only those selected below".
-Eric
Eric - let me start out by thanking you for your extraordinary patience. maybe some of your patience can rub off on me when i have to deal with these pesky questions!
after making the change you suggested, i get this message:
i have attached my parameters for your amusement.
THANK YOU ONCE AGAIN !
UPDATE - found an older post:
http://www.virtualmin.com/node/16585
To get around that, you could always select a different backup format. When setting up your scheduled backup, in the Destination and Format section, you could choose "One file per server (old format)" rather than using the default "One file per server" in the "Backup Format" section.
this appears to have worked!
awww DARN - and i thought i was getting so close!
here is what i did:
1) check 'all virtual servers' 2) click 'Only those selected below .. ' 3) unCheck "Server's home directory and web pages ( Include logs directory)" 4) click 'One file per server (old format)'
and the error is below.
is there a better way to be moving an entire server, less the home directory?
in a move of sheer desperation, i tried this (please don't laugh)
virtualmin backup-domain--dest /tmp/virtualmin/ --all-domains --all-features --newformat --all-virtualmin --exclude *a --exclude *b --exclude *c --exclude *d --exclude *e --exclude *f --exclude *g --exclude *h --exclude *i --exclude *j --exclude *k --exclude *l --exclude *m --exclude *n --exclude *o --exclude *p --exclude *q --exclude *r --exclude *s --exclude *t --exclude *u --exclude *v --exclude *w --exclude *x --exclude *y
when i include '--test' everything seems to work, but otherwise i just get "Backup failed!" at the end.
again, all i want to do is to copy or clone all the virtualmin/webmin stuff on a new server but exclude all the user data.
is there a better way to be moving an entire server, less the home directory?
Nuts, I forgot that this might be an issue, but you need to select "One file per server (old format)" as the backup format when not including home directory data.
You're very close though :-)
-Eric
Oops, I read your posts out of order -- it looks like you got all that working. Great!
i am reposting this under:
https://www.virtualmin.com/node/27370