Re: [Tiki-devel] Calling Tiki from the command line
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Torsten! Accessing the Tiki database directly would be another possibility. But the Tiki 21 database schema contains no less than 271 (!) tables. And I couldn't find any documentation about them yet, on dev.tiki.org. I'm still investigating. I'd have to read the Tiki source code in order to determine what tables and attributes I have to manipulate. It might be easier to do it like I've planed, the way I have described in the message which you just answered. Iff it will work like I've planed, and that still is the question. Regards, Volker Am Freitag, dem 11.02.2022 um 00:09 +0100 schrieb Torsten Fabricius via TikiWiki-devel: > Hi! > > > > You want to import text to the database, so I suppose you have to > use a command line script with mysql or you convert the moin text > into a csv with Tiki database page table structure to import from > there. > > > > Imho you need to consider the mapping of page related meta content > like category (ID) or creators user name (ID) etcetera. > > If you need to import the meta content depends on the amount (how > many categories, how many users, etcetera) so maybe it will be > easier to create that manually, if not a lot of conten and if only a > one time job for your self. > > > > So I see either import to mysql directly or convert moin-pages.txt > to tiki-pages.csv or tiki-pages-table.sql and then import. > > > > For your task a command line browser would be likely not sufficient > - I just mention as another general option to access Tiki from the > command line ;-) > > > > Hth, > > Torsten > > > > Am 10.02.22 um 20:23 schrieb Volker > Wysk: > > > > > > Hi! > > I'm making progress with my MoinMoin to Tiki migration program, which I call"moin2tiki". > > I've read and commented most of the lib/wiki/xmllib.php script, whichimplements most of the "XML Import-Export" feature. See the page "XML-Wiki-Import-Export" on doc.tiki.org. I've come to the conclusion that I can't usethis feature. > > So my program is supposed to work like this: It parses and converts theMoinMoin pages to Tiki. (Those are stored on disk.) The pages along withsymlinks to the attachments are stored in a directory structure. > > A PHP script (moin-import.php) is placed in the Tiki root directory. Thisscript is called by moin2tiki. It loads the Tiki libraries and uses them tostore the pages and attachments, which it has read from the directorystructure, in the Tiki database. > > The script is to be called directly from a shell, with "sudo -u www-data phpmoin-import.php <path>" or something like that. It's *not* called by the webserver. > > Now my question is this: Will this work? Can Tiki be accessed this way (by aPHP script that runs from a shell/from the command line)? > > Cheers,Volker > > > > > > > > > > > > > > _______________________________________________TikiWiki-devel mailing listTikiWiki-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > > > > > > > > > _______________________________________________TikiWiki-devel mailing listTikiWiki-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmIGOw8ACgkQ+K4ydFOs HoXHYg//Q77xN95GvM5oBNwaI0TGR1mKUjohY8JmQeYHCiMTFjOhLftXmkoUbj2e zqEM47tuQp59IjrEpugmKPeZx1gCVTjZRGoMUcC2HD+9Zsp26GJk9CB6K6+NrLoF gI+O95yIf4XfiZHcExqeyuqGe69Ige+y0JgzjuqSFMtKf1nV4yosFUzilpS2oOaU T9n4ZSPzeAAvxNvQzY/YigD1VtFl/KHuACkWXad1bsRqe52eKwnrD2LsQK/B9W6V gevxgYedbq++9ZWHYfqyoB/Gl6Wj1bYXXqyIRi0DOIh/ltvSeFUNki4+DWhSOHkB jDY+ljsUck+Qx3IKq2W1nS7Gm0XWzZbgYk/FVHLwNr1ADgqiF7h9DRMU7vEkt41w m/NZJAlxEU+5iKWn3DLzjF26w1zAvDK7YGHNQoc/8xZosTdpT7lLstxpnFB89yFf cG5lxG+tjmtqB1rQRtFLz/BfzwcvAHDrWKi9zI5Ag6/pnSIZsjqwiBXHslqr9CAI j2NL2p75EmCV7m+pRE1zeZumwgx8S9tX1DCyJOwd6kyA4ptmxvPyPBWqJ1vz5p2U cWlg9OVxin1nzcowINePq2mb0INGwDOZ+APTZ6Jd1Ih/a+WxWpJfAEhpyf34NbAR Yy9dzWKRuW8crrOUyRfdOV1vDm5koHK7KIH+In5geHJCoIcl+bU= =bYLH -----END PGP SIGNATURE-----