Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [ronzo] UBB Import

Quote Reply
Re: [ronzo] UBB Import In reply to
Hi,

Look at the import.pl script in the tools directory:

Quote:
[root@gossamer tools]# perl import.pl --help

Gossamer Forum Importer

Usage:
import.pl --type={WWWThreads|UBBThreads-Perl|WWWThreads-PHP|UBBThreads|UBB5|UBB|vBulletin|ikonboard} --source=/path/to/forum [any others of the following options]

Options are:
--clear-database
Clear the Gossamer Forum database before importing data.
--append-data
If your Gossamer Forum database already has users, it will add any posts, messages, etc to the existing Gossamer Forum user. If this is not turned on, any conflicting users/data will not be added or will be treated as deleted. You probably want to use this option if you are resuming a failed import.
--close-forums
If the imported forum supports it, it will be closed so that no new messages, etc can be created while the import is running. To use this, you must have permissions to modify the appropriate configuration files. This will also close Gossamer Forum.
--add-bad-email
Any users with invalid email addresses will be added (as opposed to not being added), but their account disabled. Their email address will be set to: invalid@email.address. You can re-enable these users by searching the users' email addresses for invalid@email.address.
--debug
Turn on debugging. To increase the debug level, use more --debug's (up to 4 levels). For examples --debug --debug for level 2 debugging.
1: Minimal debug output.
2: + Summaries of imported data.
3: + Imported data.
4: + SQL queries.
--logfile=/path/to/logfile
Log debug and other information to this logfile.
--help
Display this help screen.

Examples:
import.pl --type=WWWThreads --source=/www/htdocs/cgi-bin/wwwthreads --clear-database --close-forums

This would import your WWWThreads (Perl) forum that's located in /www/htdocs/cgi-bin/wwwthreads and clear your Gossamer Forum database as well as close both Gossamer Forum and WWWThreads (if your version supports it).

import.pl --type=WWWThreads-PHP --source=/www/cgi/w3t-php --append-data --close-forums --add-bad-email

This would import your WWWThreads (PHP) forum that's located in /www/cgi/w3t-php and append data to your current Gossamer Forum install, close both Gossamer Forum and WWWThreads (if your version supports it), and also add any users who have invalid email addresses (but disable their account).

[root@gossamer tools]#

Cheers,

Alex
--
Gossamer Threads Inc.
Subject Author Views Date
Thread UBB Import ronzo 3463 Feb 26, 2003, 6:07 PM
Thread Re: [ronzo] UBB Import
Alex 3381 Feb 27, 2003, 9:12 PM
Thread Re: [Alex] UBB Import
ronzo 3372 Feb 28, 2003, 9:02 AM
Thread Re: [ronzo] UBB Import
yogi 3386 Feb 28, 2003, 9:22 AM
Post Re: [yogi] UBB Import
ronzo 3354 Feb 28, 2003, 10:03 AM