Koozali.org: home of the SME Server

migrate helper script

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
migrate helper script
« on: October 10, 2025, 08:19:02 PM »
Im looking to test this but never used it before. I have an old (i know) v9 im wanting to move to 11 and test.

But on the wiki it says to install the migrate helper but on which box, the old one or the new one. Then how to i tell it where the old server is located etc?

James

Offline bunkobugsy

  • *
  • 325
  • +4/-0
Re: migrate helper script
« Reply #1 on: October 10, 2025, 08:54:56 PM »
On the old one, SME9, but you're out of luck, http://viewvc.koozali.org/smecontribs/rpms/smeserver-migratehelper/contribs10/migratehelper.sh is unreachable for the moment.

"You must first create the mount point and mount your external disk already formatted and with sufficient place to receive the archive:
mkdir /mnt/backup
mount /dev/mydisk /mnt/backup"

"Then run the script."

On SME11: "First step will be to simply use the console restore with the obtained smeserver.tgz. We expect you handle the transfer either using a USB disk, or ..."

https://wiki.koozali.org/Migratehelper

"Second use the configuration console to fix any changes needed on network card or IP, domain name...
Third you can use the saved list of rpm to try to install your contribs and other missing things
Fourth, you can start a rsync for the missing bits"

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
Re: migrate helper script
« Reply #2 on: October 11, 2025, 05:21:28 PM »
Ah I see
I assumed it would copy iy over the lan. So this allows me to backup to an external usb disk.
I suppose it would be easier to just actually do a backup to said usb drive and then restore as a new machine from the installation config?

Thanks

James

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
Re: migrate helper script
« Reply #3 on: October 11, 2025, 05:40:24 PM »
Is there a way to do do it over the lan, i dont mind the old machine being offline from the start. ie can i backup to ftp or something remotly then restore.
Everything i have now is on proxmox and this particular machine is on bare metal on a microserver. Downside is its 2 hours away and id like to work on this over the weekend and get it back on sme11 for monday.

Many Thanks

James

Offline Jean-Philippe Pialasse

  • *
  • 2,979
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: migrate helper script
« Reply #4 on: October 12, 2025, 05:23:32 PM »
migratehelper allow you to create a smeserver.tgz with the bare minimal to restore contribs and config without the heavy load of data.  then when your server is restored simply scp or sshfs your data in the new one. 

you can download the rpm and install it from smecontribs 10 it will install well on your sme9
https://mirror.canada.pialasse.com/releases/10/smecontribs/x86_64/RPMS/smeserver-migratehelper-1.0-11.el7.sme.noarch.rpm

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
Re: migrate helper script
« Reply #5 on: April 13, 2026, 06:37:39 PM »
Im womdering if i can use this or something else just to copy user data (ie emails, accounts etc) but nothing else. I can move accross the mariadb data and files after. Might be a cleaner way of doing it then i wont be in a position that i copy some wierd old settings over?

Offline ReetP

  • *
  • 4,050
  • +6/-0
Re: migrate helper script
« Reply #6 on: April 13, 2026, 06:51:59 PM »
Im womdering if i can use this or something else just to copy user data (ie emails, accounts etc) but nothing else. I can move accross the mariadb data and files after. Might be a cleaner way of doing it then i wont be in a position that i copy some wierd old settings over?

James you really need to reed the Wiki.

https://wiki.koozali.org/Migratehelper#Description

Migratehelper will:

Make a back up of all your configs and settings but NOT your data files in ibays or emails. It does include DBs. It makes it much smaller and faster.

You can use this minimal/small tgz to restore to a new server, and then SCP the emalis and files across the network. Exactly as described in the wiki.

Your big issue is migrating from 9 - 11 which you can't easily without risking a lot of trouble - you'll really need to get to 10 first and check everything is OK, and then do it again to 11. Note you may well have issues with ssh and ciphers - there are solutions around here.

You really need a test machine to trial this first.

Otherwise just do a USB backup/restore v9-v10 and v10-v11

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
Re: migrate helper script
« Reply #7 on: April 13, 2026, 07:53:13 PM »
Ah

Sorry I did read the wiki but must of missed that, i see it doesnt do the files but thought it might move over db settings like port 3306 being open.

Also this is a 10-11 move i only have 1 v9 left to move and its the main one that scares me to death so i want to move the 3 x v10's i have first.

Offline ReetP

  • *
  • 4,050
  • +6/-0
Re: migrate helper script
« Reply #8 on: April 13, 2026, 11:05:01 PM »
Ah

Sorry I did read the wiki but must of missed that, i see it doesnt do the files but thought it might move over db settings like port 3306 being open.

Like a normal backup it moves your settings over as is. If you managed to leave your port 3306 open for the world to break in it won't fix that....... It does not fix user errors.

See your previous on 3306 and opening a NFR for an audit tool.....

Quote
Also this is a 10-11 move i only have 1 v9 left to move and its the main one that scares me to death so i want to move the 3 x v10's i have first.

Should be fine with 10-11 but I'd personally do the hard bit first..... You know the rest will be easy.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation