NAME

slash1toslash2 - Convert Slash 1.0 database to Slash 2.0


SYNOPSIS

        install-slashsite -u slash
        slash1toslash2 -u slash slashdotrc.pl


DESCRIPTION

Please read these instructions before starting a new Slash 2.0 site. They are designed to convert a site from scratch; they will not work with a Slash 2.0 site that's been used.

This program will copy data from your old Slash 1.0 database to your new Slash 2.0 database, making direct connections to both databases and copying the data directly between them.

It will copy over your data, but if you've done any customizations to display blocks, or code, it will not copy that over.

A detailed description of the work done is below, DETAILS. You might want to read this section before running the program.

Note that this is designed for converting a Slash 1.0.9 database; any schema changes you've made, or incompatible changes from earlier versions of Slash, may break this program.

Please follow these instructions precisely to convert your Slash 1.0 site to Slash 2.0.

Requirements

BACK UP YOUR DATA

If you lose your data, it is your problem, not ours. I deleted all of the data on http://use.perl.org/ while preparing this program. However, I had a backup ready to go (although I still lost about 12 hours of data, and I feel like an idiot). Back up your data on your Slash 1.0 database. You have been warned.

Also, consider what happens if you have two Slash sites on one machine; what if you give this program the wrong virtual user? Perhaps you just deleted a working site! Back up any existing data on the target database server, too. See, even after writing this warning, I did this, too, and typed ``slash'' as my virtual user instead of ``useperl'', and I overwrote some of the existing database, and didn't have a backup for some of it. After that, I felt like a total moron.

This program does not write to your Slash 1.0 database, so you should be fine, but there are no warranties, expressed or implied. If you are running a Slash site, you should be backing up your database nightly anyway, right?

So backup all your data on both boxes, so you don't feel like a moron, like me.

Database Preparation

You probably won't need to change any data. But there are three things to check before starting.

Install Slash 2.0 Slash Site

Run the install-slashsite program as described in that program's documentation. Remember which virtual user you used to install the site. Do not make any changes to the database.

Copy Slash 1.0 RC File

Get the slashdotrc.pl file from your Slash 1.0 site and copy it to some directory on your Slash 2.0 box. At this point, make sure you can access the Slash 1.0 database from the Slash 2.0 box.

You may need to modify the slashdotrc.pl file's dbhost, dbuser, and dbpass variables to make sure the database can be accessed properly. Also, make sure ``$Slash::conf{DEFAULT}'' is not commented out in slashdotrc.pl.

Run It

Run the program, using the proper value for virtual_user and the proper path to the slashdotrc.pl file:

        slash1toslash2 -u virtual_user slashdotrc.pl

You will be asked three questions: do you agree to the disclaimer, what UID do you want for AC (default is 1), and do you want to delete the new admin user created by install-slashsite (probably yes).

Add Final Touches

Copy over any images or static files you have, and adjust the site's templates, blocks, and variables as needed.


DETAILS

This is just a detailed run-down of what the program does, in the order it does it.


VERSION

$Id: slash1toslash2,v 1.2.2.2 2001/04/23 11:21:52 pudge Exp $