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 all, I've tried it out. I've added a wiki page and an attachment to that page. I've done it the way I described, by calling "php moin-import.php" from the command line, and it *seems* to work. It was easy. So I think I'll do it this way. Cheers,Volker Am Freitag, dem 11.02.2022 um 11:31 +0100 schrieb Volker Wysk: > 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 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+K4ydFOsHoUFAmIGT0YACgkQ+K4ydFOs HoVLsA/+Nqiu40qvzFe6r4eSzWmtqknd703NFiXC+rg4vaREVSsPCvEhJ+zmsL7W jJ51eJuUBFBO8SRtNo72IJwPp8fcNcx5Jlkqz0KydeU07hAiF1iXGKaDLN2jjv7C I2xNolSOauQFmza4MszptmIhP0JipkVtULqd2VWrTj8X0B2PBaAaWMPeJRVKoUcb dQIL5OsT+wLsg1JfInKMYFppEPyj6DhZr8NYosq+k6dav+IIlBVgNjCmITgOfWgB Ts/jn17J+Kps/OjneFbV4UKUbFhRu477QnEGFFuDfd8rIIq/fZOAhso3YsrKg4Rz bXw9uAz88XGk7CMNTVNp14E3qTUAxode9ghRgLckD/UNWaHRNsdtryleMFLI5Fv0 QHGuhlxRTKwQ+FE+RD32Dhdm7Wvrc6sNaxRDeeZclEYrYNAu63koCgSSylhFp3cU KiF5ypned1aWVznYxUhXvDooWbEqv0FC7N/y41C6ALjk9ZuuZCHy/jzmRYTR0wjG duF9ANvf8+fZngrl3XziOY5+dkaX9b8HXGoFijrrXSN6GLjQ+fzo0PSoEEA1L8Hy igFaFd+iNq3t4KHJTaMEStns3InWaWTIFb+JnSYwinrM4eT+1sXfqloJzt5sC/76 DHHXYvrCfMvTTWLZ/69b9fvqpKxgnGDBA1g0C5ZfO1xU3gBSISw= =8jqM -----END PGP SIGNATURE-----