Loading...
 
Skip to main content

Tiki DB Redactor: Add script and document procedure for running from any Tiki DB, including *.tiki.org backups

Status
Closed
Subject
Tiki DB Redactor: Add script and document procedure for running from any Tiki DB, including *.tiki.org backups
Version
12.x
Category
  • Feature request
Feature
Administration
Resolution status
Fixed or Solved
Submitted by
Marc Laporte
Volunteered to solve
Nelson Ko
Lastmod by
Nelson Ko
Rating
(0)
Related-to
Description

See: Database Redact

Although it would be nice, this doesn't need to be automatic on a cron job like A backup script that can be put on a cron job to save to a distant backup server

Amette explained that he copies data to a new database and that he executes various operations on this database.

So in essence, a cloning command is necessary for this. And a clone and upgrade is needed for show.tiki.org

If clone and redact was available on the command line, as a cron job, it could be an extra parameter to a clone command. See: Command-line tool

And when we'd become quite confident with our script, we could even make the backups available to the public, like Wikipedia does. This is one more reason why fully automated would be nice.

http://en.wikipedia.org/wiki/Sanitization_(classified_informationQuestion)

1st use of this new process is to supply redacted copies of tiki.org, doc.tiki.org and dev.tiki.org to Matthieu Hermet to work on NLP with ElasticSearch.


Workaround

There are plans to automate this, but the current procedure is:

Run setup.sh and when prompted for the multitiki instance, put "redact". This will create the local.php in db/redact/local.php

Modify the db/redact/local.php to point to the database you want to redact (it is recommended that you make a copy of your database first).

Then run:
php console.php --site="redact" database:redact

Importance
9
Easy to solve?
3
Priority
27
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4677
Created
Wednesday 21 August, 2013 05:41:16 UTC
by Marc Laporte
LastModif
Saturday 13 May, 2023 17:41:16 UTC


Show PHP error messages