Transfer Data to New Zope Server
I am Zope newbie so please bear with me. As a part of my job I just inherited control of an extremely old Zope server running on FreeBSD. I would like to move to a new instance of Zope runninf on Windows Server 2003. So basically I need help transferring all the data from the old box to the new one. Any help would be greatly appreciated. -pete
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Evans wrote:
I am Zope newbie so please bear with me. As a part of my job I just inherited control of an extremely old Zope server running on FreeBSD. I would like to move to a new instance of Zope runninf on Windows Server 2003. So basically I need help transferring all the data from the old box to the new one.
How old? What version of Zope / Python show up on your brwoser when you visit the "Control_Panel" in the ZMI?
Any help would be greatly appreciated.
The process should go something like this: 1. Get a "new" installation of Zope (preferably the same version of Zope / Python as the old box) running on the new machine, and verify that you can manage it. 2. Get any supporting Python libraries or extensionsn in use on the old machine installed on the new one. To determine them, look in the 'site-packages' directory of the standard Python library, as well as the 'lib/python' subdirectory of your Zope "instance home". 3. Get the add-on products used on the old box installed on the new one. Look in the 'Products' subdirectory of your Zope "instance home". 4. Finally, shut down Zope on the both boxes. Copy the 'Data.fs*' files from the 'var' subdirectory of the "instance home" on the old box to the equivalent 'var' directory on the new box. Start Zope on the new box, and verify that the instance looks OK> 5. Now, start upgrading the various bits of software incrementally on the new box, beginning with Zope and Python, then the libraries, and finally the Products. Test the site after each upgrade. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD69fK+gerLs4ltQ4RAmdDAKCUwq8quClzXQtZITSHG1CJVHMsIwCgxO72 hTCCGZZL1qmOPWi6Urfl+pw= =gJvH -----END PGP SIGNATURE-----
On Thu, Feb 09, 2006 at 07:01:15PM -0500, Tres Seaver wrote:
4. Finally, shut down Zope on the both boxes. Copy the 'Data.fs*' files from the 'var' subdirectory of the "instance home" on the old box to the equivalent 'var' directory on the new box. Start Zope on the new box, and verify that the instance looks OK>
If downtime is a problem, I'd do a trial run first, something like this: * On the old box, leave Zope running, and do: cp var/Data.fs TEST.fs (the TEST.fs name doesn't matter). * Copy TEST.fs to the new box, rename it Data.fs. * Start zope on the new box and verify that it looks OK. If not, the old one is still running while you figure out the problems. Once you have the new box working, *then* shut down Zope on the old box and re-copy the old Data.fs to the new box to be sure you get all data up to the moment of shutdown.
5. Now, start upgrading the various bits of software incrementally on the new box, beginning with Zope and Python, then the libraries, and finally the Products. Test the site after each upgrade.
Yep. I'd suggest being cautious and emphasize the "incremental" part of that. I just added a stub page to zopewiki.org about upgrading old versions: http://zopewiki.org/Upgrading ... contributions welcome, of course. I vaguely recall having some pain when migrating from 2.6 to 2.7, I think due to security fixes and/or deprecations that broke some third-party code. Nothing major, I just had to install appropriate versions of the third-party stuff to fix it, and tweak some of my own code. For similar reasons, at my old job there are still boxes running Zope 2.7 that we had not had the time to upgrade to 2.8 or 2.9 because of third-party product issues. -- Paul Winkler http://www.slinkp.com
Peter Evans wrote:
I am Zope newbie so please bear with me. As a part of my job I just inherited control of an extremely old Zope server running on FreeBSD. I would like to move to a new instance of Zope runninf on Windows Server 2003.
Sorry, but why would you want to move to Windows? That seems like a step back, even from BSD :-S
So basically I need help transferring all the data from the old box to the new one.
That's pretty easy, but I'd urge you to consider Linux for the box instead of Windows. This isn't a political thing, it's just there's a lot more support for useful stuff on Linux... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (4)
-
Chris Withers -
Paul Winkler -
Peter Evans -
Tres Seaver