Migrating server configuration and data
You can migrate your Netscape FastTrack Server configuration and
data files to your SCO OpenServer system.
The following sections describe how to:
If your system does not use virtual domains, save the following files and directories to a floppy disk:
/usr/internet/ip/0.0.0.0/publish/* /usr/internet/ip/0.0.0.0/publish/ftp/* /usr/internet/ip/0.0.0.0/ns_httpd/config/magnus.conf /usr/internet/ip/0.0.0.0/ns_httpd/config/obj.conf /usr/internet/ip/0.0.0.0/ns_httpd/config/mime.types /usr/internet/ip/0.0.0.0/ns_https/config/magnus.conf /usr/internet/ip/0.0.0.0/ns_https/config/mime.types /usr/internet/ip/0.0.0.0/ns_https/config/obj.conf /usr/internet/ns_httpd/docs/* /usr/internet/ns_https/docs/*Some of these files and directories might not be present on your system (if, for example, you have not configured an ftp server or a secure server).
For an example of creating a simple shell script to save these files to disk, see ``Example sendmail backup'' earlier in this chapter.
If your system uses virtual domains, save the following files
and directories to a floppy disk:
/usr/internet/ip/ipaddress/ns_httpd/config/magnus.conf
/usr/internet/ip/ipaddress/ns_httpd/config/obj.conf
/usr/internet/ip/ipaddress/ns_httpd/config/mime.types
/usr/internet/ip/ipaddress/ns_https/config/magnus.conf
/usr/internet/ip/ipaddress/ns_https/config/obj.conf
/usr/internet/ip/ipaddress/ns_https/config/mime.types
/usr/internet/ip/ipaddress/publish/htdocs/*
/usr/internet/ip/ipaddress/publish/htdocs-s/*
/usr/internet/ip/ipaddress/publish/ftp/*
/usr/internet/ip/ipaddress/HOSTNAME
You must save one set of files and directories for every IP address you host. For example, if you host virtual domains at addresses 192.168.118.1 and 192.168.118.2, you must save these files:
/usr/internet/ip/192.168.118.1/ns_httpd/config/magnus.conf
/usr/internet/ip/192.168.118.2/ns_httpd/config/magnus.conf
Some of these files and directories might not be present on your system (if, for example, you have not configured an ftp server or a secure server).
For an example of creating a simple shell script to save these files to disk, see ``Example sendmail backup'' earlier in this chapter.
After you install SCO OpenServer on your system, you might need to use the Internet Manager to prepare the system for the configuration files you saved.
To restore the saved server configuration files:
This restores the saved server configuration data.
Several files you restored must be copied or moved into different locations on the system.
Copy the following files into
/usr/internet/ns_httpd/admserv/httpd-80/:
/usr/internet/ip/0.0.0.0/ns_httpd/config/magnus.conf
/usr/internet/ip/0.0.0.0/ns_httpd/config/obj.conf
/usr/internet/ip/0.0.0.0/ns_httpd/config/mime.types
If you are running the secure server, copy the following files
into /usr/internet/ns_httpd/admserv/https-443/:
/usr/internet/ip/0.0.0.0/ns_https/config/magnus.conf
/usr/internet/ip/0.0.0.0/ns_https/config/mime.types
/usr/internet/ip/0.0.0.0/ns_https/config/obj.conf
If you are running a secure server, move any files in /usr/internet/ns_https/docs into /usr/internet/ip/0.0.0.0/ns_httpd/publish/htdocs-s.
Several files you restored must be copied into additional locations on the system.
Copy the following files into
/usr/internet/ns_httpd/admserv/httpd-80.ipaddress:
/usr/internet/ip/ipaddress/ns_httpd/config/magnus.conf
/usr/internet/ip/ipaddress/ns_httpd/config/obj.conf
/usr/internet/ip/ipaddress/ns_httpd/config/mime.types
ipaddress is the IP address for each virtual domain.
For example,
for the virtual domain 192.168.118.3, copy
files from:
/usr/internet/ip/192.168.118.3/ns_httpd/config/
into:
/usr/internet/ns_httpd/admserv/httpd-80.192.168.118.3/
If you are running the secure server, copy the following files
into /usr/internet/ns_httpd/admserv/https-443.ipaddress:
/usr/internet/ip/ipaddress/ns_https/config/magnus.conf
/usr/internet/ip/ipaddress/ns_https/config/obj.conf
/usr/internet/ip/ipaddress/ns_https/config/mime.types