Koozali.org: home of the SME Server

Move to 6.5 on new server

ElFroggio

Move to 6.5 on new server
« on: August 10, 2005, 04:30:34 PM »
This is another question about upgrade and computer move. I have looked around and would like some clarification.

Current: Old P3 with SME 6.0.1 and quite a few users. The only extra package installed is the anti-virus.
New: New P4 with Raid with SME 6.5.

SME is only used for email/webmail. What the best way to transfer the users/passwords and their emails?

Doing a simple backup of home/e-smith and restore on the new machine?

Or will I have to recreate all the users manually? and then copy from home/e-smith/... to their local directories.

Or is there a better way?

Any suggestion? Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Move to 6.5 on new server
« Reply #1 on: August 10, 2005, 05:41:15 PM »
Quote from: "ElFroggio"
This is another question about upgrade and computer move. I have looked around and would like some clarification.

Current: Old P3 with SME 6.0.1 and quite a few users. The only extra package installed is the anti-virus.
New: New P4 with Raid with SME 6.5.

SME is only used for email/webmail. What the best way to transfer the users/passwords and their emails?

Doing a simple backup of home/e-smith and restore on the new machine?


That won't be sufficient.

If your total user data is < 4GB, then using the manager's backup to desktop and restore from desktop will be the easiest way.

Backup from your old server. Shut it down. Set up the new server, restore to it. Then reconfigure from the console so that you have the correct ethernet drivers for your new hardware.

ElFroggio

Re: Move to 6.5 on new server
« Reply #2 on: August 10, 2005, 06:17:06 PM »
Quote from: "CharlieBrady"
If your total user data is < 4GB, then using the manager's backup to desktop and restore from desktop will be the easiest way.

I am well over 4 gig

Quote from: "CharlieBrady"
Backup from your old server. Shut it down. Set up the new server, restore to it.

Sorry but, backup everything or just home/esmith?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Move to 6.5 on new server
« Reply #3 on: August 11, 2005, 12:43:33 PM »
ElFroggio

> I am well over 4 gig

There are a couple of ways to do that if you don't have a tape drive.

Move your ibays temporarily to /tmp and then run the backup to desktop. It will back up everything that needs backing up to successfully restore on the new server except the ibays of course as these have been moved tempoararily and /tmp is not included in the backup.
After backup move your ibays back to original locations.
Connect the 2 servers on the same network and after restore, manually copy the ibay data from old to new server, or do the same via a workstation share.


Install the backup2ws contrib (from dmay) and do a Disaster Recovery Backup (911) job and limit the backup split file size to 2Gb or less.
Restore the same to the new server after installing the backup2ws contrib.
I'm not sure if it works on 6.5 so you best check that first.

Check the FAQ to see what a backup includes in order to be able to fully restore your system on a new server, it's a lot more than just /home/e-smith.
...

ElFroggio

Re: Move to 6.5 on new server
« Reply #4 on: August 11, 2005, 06:42:36 PM »
Quote from: "RayMitchell"
Check the FAQ to see what a backup includes in order to be able to fully restore your system on a new server, it's a lot more than just /home/e-smith.


1. Thanks for pointing this to me, I did not know that there was a FAQ that showed what was being backed up.
2. I have an easy way of backing up and transfer, but from the FAQ:

* What is backed up when using SME's backup function?

The function "backup to desktop" will create and transfer a compressed file (smeserver.tgz) which contains the following files and repertories:

/home/e-smith
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/ssh
/root/.ssh
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/smbpasswd

Does this mean that for me to move from 6.0.1 to 6.5, I backup and move these EXCEPT for /etc/e-smith/templates-custom and /etc/e-smith/templates-user-custom?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Move to 6.5 on new server
« Reply #5 on: August 12, 2005, 03:57:35 AM »
ElFroggio

>....EXCEPT for /etc/e-smith/templates-custom
> and /etc/e-smith/templates-user-custom?

I don't understands what makes you think you can leave those out.
To replicate your server you need to backup and restore all listed directories and their contents using one of the backup methods. The backup2ws essentially does the same thing.
...

ElFroggio

Re: Move to 6.5 on new server
« Reply #6 on: August 12, 2005, 05:22:15 AM »
Quote from: "RayMitchell"
ElFroggio
>....EXCEPT for /etc/e-smith/templates-custom
> and /etc/e-smith/templates-user-custom?

I don't understands what makes you think you can leave those out.


I am just trying to move the users data.

Aren't these new/updated templates for 6.5? If I overwrite the 6.5 templates with the 6.0.1 templates, won't there be problem?