Koozali.org: home of the SME Server

moving user password and email from server to server

Offline jameswilson

  • *
  • 744
  • +0/-0
    • Security Warehouse, trade security equipment
moving user password and email from server to server
« on: September 08, 2023, 03:48:48 PM »
Im upgrading a server to 10 but dont want to use affa to migrate so id like to do it manually.
Im wanting to reconfigure the server manually (ie settings) as this current one has been in use and upgraded from sme7 beta when i first strated with sme

So im looking to sync (ssh i presume) all the users, password, their files and their email.
Ibays i would like to manually copy over as we are bound to have years of useless stuff i no longer need.

Many Thanks

Offline ReetP

  • *
  • 3,740
  • +5/-0
...
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

  • *
  • 744
  • +0/-0
    • Security Warehouse, trade security equipment
Re: moving user password and email from server to server
« Reply #2 on: September 08, 2023, 06:16:09 PM »
hi reetp thanks.
i saw that but thought it was only for new installs. id like get the new one up and running with vpn access etc then moving email then making it the domain controller.

but this didnt seem to do that?

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: moving user password and email from server to server
« Reply #3 on: September 08, 2023, 06:44:06 PM »
Read it carefully and test.

See what it includes and excludes.

Don't try manually just copying users/passwords or you'll end up in a complete mess.

It will back up all relevant settings for you to restore, and you can then just copy across files & mails as required.

Just make sure you don't duplicate server IPs.
...
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 Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: moving user password and email from server to server
« Reply #4 on: September 08, 2023, 11:43:26 PM »
either migrate either don’t.  half baked cake taste not good.

if you have load of data yes you can exclude those and rsync when the new system is up and older moved to another ip

and yes test the new system first on a test vm and test network. if happy go live

Offline jameswilson

  • *
  • 744
  • +0/-0
    • Security Warehouse, trade security equipment
Re: moving user password and email from server to server
« Reply #5 on: September 09, 2023, 12:13:59 AM »
either migrate either don’t.  half baked cake taste not good.

if you have load of data yes you can exclude those and rsync when the new system is up and older moved to another ip

and yes test the new system first on a test vm and test network. if happy go live
Its only about a TB but if your saying i cant do it bit by bit i wont. Ill imapsync users email and create accounts as needed

Thanks

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: moving user password and email from server to server
« Reply #6 on: September 09, 2023, 05:08:25 AM »
thing is migrating half users or half service will create more issues. because you will have user messing up on both side. 

you can migrate all your users and services without data and rsync later or even sshfs or nfs mount the data to the correct path pending data migration of the big bits.  The lets say rsync users on night 1 and ibays on week end

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: moving user password and email from server to server
« Reply #7 on: September 09, 2023, 08:58:31 AM »
Its only about a TB but if your saying i cant do it bit by bit i wont. Ill imapsync users email and create accounts as needed

If you don't migrate your users & settings properly in one go you'll be back here taking up loads more of our time trying to fix the mess you have created against best advice.

Quite frankly you should have done this a long time ago.

The script essentially makes a standard SME backup less emails & files making it much quicker to migrate your server.

You can sync those files over later at your leisure.

So please, do the right thing, do it once, do it now, and save everyone a lot of time.
...
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

  • *
  • 744
  • +0/-0
    • Security Warehouse, trade security equipment
Re: moving user password and email from server to server
« Reply #8 on: September 10, 2023, 02:16:52 AM »
Quote
Quite frankly you should have done this a long time ago.
Your right i should

However i didnt and whilst i dont do all the things i should I support this project.

I will do as im told, it is one of the major reasons im on SME.
I will also do my best not to bother you all so you can focus on other things.

James

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: moving user password and email from server to server
« Reply #9 on: September 10, 2023, 01:01:05 PM »
We're just trying to give best advice.

It may not be what you want to hear, but it doesn't make it wrong.
...
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