summaryrefslogtreecommitdiffstats
path: root/ColaBBS_to_PttBBS/README
blob: 1002e489b12327925f1e31609e2cc3dc8c094d68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
There're some tools for transfering data from ColaBBS
(http://lh.twbbs.org/) to PttBBS (http://ptt.cc). Since ColaBBS
doesn't provide its source code or any file spec, there's no shortcut
for this. I hacked the data structures with only VERY LITTLE
information directly from files, and these may NOT work. You sould NOT
use if you don't have programming background, or contact(make an
offer?) me in2 _AT_ in2home.org.
the Id of this file is $Id$ .

please follow the step:
1. backup your ColaBBS.
2. install a new PttBBS
   (see https://opensvn.csie.org/pttbbs/trunk/pttbbs/docs/INSTALL for
    details)
   please do NOT do the following to a existed bbs!
3. shutdown the bbs and clean all shared-memory if it's running.
4. copy all .c and .pl programs into your ~bbs/pttbbs/util/. then
   compile them: `make cntDIR cntbrd cnthomeDIR cntpasswd`
5. transfer boards:
    cd _COLABBS_/boards/; \
    perl -e "system('mv $_ ~/boards/'.
             substr($_, 0, 1).'/'.$_) foreach( <*> )"

    cd /home/bbs/boards; perl cntarticle.pl boards/*/*; \
    apply "mv %1/.DIR %1/.DIR.colabbs; cntDIR < %1/.DIR.colabbs >
               %1/.DIR" */*
    cntbrd < _COLABBS_/boards/.BOARDS > ~/.BRD
6. transfer mails
    cd _COLABBS_/home; cnthomedir.pl
    cd ~/home/;
    apply "mv %1/mail/* %1/" */*;           \
    apply "mv %1/mail/.DIR %1/.DIR.colabbs" */*;    \
    apply "rmdir %1/mail" */*;          \
    apply "cnthomeDIR < %1/.DIR.colabbs > %1/.DIR" */* ;    \
    cntarticle.pl */*
7. transfer password file:
    cntpasswd home/*/*/USERDATA.DAT > ~/.PASSWDS;   \
    tunepasswd
8. tranfer man
   use cntDIR to convert .DIR and cntarticle.pl for articles.