virtualmin migration

15 posts / 0 new
Last post
#1 Thu, 05/09/2013 - 13:06

virtualmin migration

hello all -

i would like to migrate my virtualmin server. i was looking at this post (yes i tried to research this first)

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!

Thu, 05/09/2013 - 22:18


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.


Fri, 05/10/2013 - 16:39

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?)

Fri, 05/10/2013 - 22:59

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.


Wed, 05/15/2013 - 12:56 (Reply to #4)

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!

Wed, 05/15/2013 - 15:11

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".


Wed, 05/15/2013 - 17:54

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.

Thu, 05/16/2013 - 09:10


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".


Thu, 05/16/2013 - 11:18 (Reply to #8)

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:

Starting backup of 92 domains to local file /home/mark ..
A new format backup can only be done when the home directory is included
Backup failed! See the progress output above for the reason why.

i have attached my parameters for your amusement.


Thu, 05/16/2013 - 12:33

UPDATE - found an older post:

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!

Thu, 05/16/2013 - 17:18

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.

Backing up mail and FTP user Cron jobs ..
.. none to backup
Copying Apache virtual host configuration ..
.. no Apache virtual host found!
Backup failed! See the progress output above for the reason why.

is there a better way to be moving an entire server, less the home directory?

Thu, 05/16/2013 - 18:09

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.

Thu, 05/16/2013 - 22:20

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 :-)


Thu, 05/16/2013 - 22:25

Oops, I read your posts out of order -- it looks like you got all that working. Great!

Fri, 05/17/2013 - 10:01

i am reposting this under:

Topic locked