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.