Apple 034-2344 manual Restore saved data, To migrate the web configuration

Page 21

Step 8: Restore saved data

Copy the files you want to reuse from their backup location.

Web Configuration Data

To migrate the web configuration:

1Save the file /etc/httpd/servermgr_web_httpd_config.plist and the directory /etc/ httpd/sites_disabled/ and all its contents from the version 10.3 server.

2Replace the /etc/httpd/ directory and its files on the version 10.3 server with the /etc/ httpd/ directory and its contents that you saved on the former server. Also restore the saved /etc/webperfcache/webperfcache.conf.

3Copy the file /etc/httpd/servermgr_web_httpd_config.plist and the directory /etc/ httpd/sites_disabled/ and all its contents into the restored /etc/httpd/ directory.

4Open Server Admin and make sure that web service isn’t running.

5Open the Terminal application. As the root user, type the 49_webconfigmigrator command:

sudo /System/Library/ServerSetup/MigrationExtras/49_webconfigmigrator

A log of the changes made to the files is created in /Library/Logs/Migration/ webconfigmigrator.log. Original versions of changed files in /etc/httpd are renamed to httpd.conf.obsolete, httpd_macosxserver.conf.obsolete, and mime_macosxserver.types.obsolete. A new httpd.conf file is created.

6In Server Admin, start web service.

Web Content

Copy saved web content to:

/Library/Webserver/Documents/

/Library/Webserver/CGI-Executables

MySQL Data

Restore saved MySQL 3.23 databases in /var/mysql.

There are a few commands you can use on an old database to remove dependency on the ISAM table format, which has been deprecated:

Run mysql_fix_privilege_tables to enable new security privilege features.

Run either mysql_convert_table_format (if all existing tables are ISAM or MyISAM) or ALTER TABLE table_name TYPE=MyISAM on all ISAM tables to avoid the deprecated ISAM table format.

Refer to the documentation on the MySQL website for migration details before running these commands:

www.mysql.com/doc/en/Upgrading-from-3.23.html

Chapter 2 Migrating From Mac OS X Server Version 10.2

21

Image 21
Contents Mac OS X Server Migration Apple Computer, Inc Apple Computer, Inc. All rights reserved Contents Migrating in Place From Asip Migrating From AppleShare IPGetting Additional Information What’s Included in This GuidePage Upgrading Versus Migrating Before You BeginMigrating Users and Groups Migration ScenariosHere are the predefined user accounts System AccountsShort name Group ID Here is a list of the predefined group accountsMigrating Other Data Migrating Data for Managed Mac OS 8 and 9 UsersAfter Migration Understanding What You Can Migrate VersionTools You Can Use To set up SeeTest the new server Migrating in Place From VersionWeb Configuration Data Make a full backup of your current serverWeb Content FTP Configuration FilesWebObjects Applications and Frameworks NetBoot ImagesTomcat Data IP FirewallQuickTime Streaming Server Files and Folders Macintosh Manager DataExport users and groups to another hard disk or partition To export users and groupsInstall Mac OS X Server version Set up the home directory infrastructureTo prepare the server to store home directories Import previously exported users and groups To import users and groups using Workgroup ManagerTo migrate the web configuration Restore saved dataAFP Configuration To migrate the AFP configurationTo migrate the mail database IP Firewall Configuration To migrate the IP firewall configurationDNS Configuration To migrate the Dhcp configuration Dhcp SettingsTo create a share point and set privileges Set up share points and privilegesTest the new server To test the new serverCreate archive files of data and user export file Migrating to a New Server From VersionCreate archive files Export users and groupsAFP DNS Copy archive files to the new server To transfer tar files or disk images using FTPRelocate saved data files Web Configuration Data Mail Database NetBoot Images Dhcp Settings Set up share points and privileges Version Tools You Can Use Install Mac OS X Server Copy current data to another hard disk or partition AFP QuickTime Streaming Server Files and Folders Import previously exported users and groups Restore saved data MySQL Data AFP Configuration DNS Configuration Migrate Macintosh Manager Information Export user Create archive files AFP DNS Set up the home directory infrastructure Relocate saved data files MySQL Data AFP Configuration IP Firewall Configuration User Data Network services administration guide Tools You Can Use Info to another hard Make a full backup of your current server Export user and group information To prepare data for the migration utilityTo export user and group information Set up the home directory infrastructure Restore saved data To migrate Macintosh Manager data For Move this folder to Old MM Items If login is Migration utility Test the new server Set up share points Export user and group information Create archive files To transfer tar files using FTP Set up the home directory infrastructure Relocate saved data files Set up share points and privileges For Move this folder to Old MM Items Migrating From Mac OS X Server Version If login is Migration utility Test the new server Page Migrating From AppleShare IP Migrating From AppleShare IP Check the migration Migrating in Place From AsipProvide Internet Aliases if necessary Export user and group information if necessaryTo export user information from Asip Prepare to migrate privileges To install the new serverTo use the AppleShare IP Migration utility Migrating From AppleShare IP Copy data to the new server This directory Place these files Macintosh Manager Macintosh Manager Items Migrating From AppleShare IP If login is Migration utility Test the new server Migrating to a New Server From Asip Provide Internet Aliases if necessary To mount the Asip server Mount the Asip server on Mac OS X ServerTo copy these items Copy the Users & Groups Data File and the mail database100 To create home directories for imported users 102 103 104 105