Export via cli
Since version 1.1.0 oTranCe offers a command line interface for the standard public/index.php. It can be called via cli/shell or using a cronjob.
Calling it without params or with the --help or -h option will show the usage.
oTranCe needs an user that is registered in oTranCe and logs him in. Permissions are checked just like in the web gui.
You can trigger any action of any controller. If there is a cli view for this action defined, you get a clean, cli optimised output. Otherwise you will get the HTML output without the surrounding layout.
Currently there are cli views for the Export controller and it's actions update-all and commit.
These should be the most interesting actions because we want to execute them via shell/cronjob.
Export of current state
To trigger the export of the current status into language files you can call:
This will export the current state to physical files on disk. They are created and saved in the folder pathToOtranCe/data/export .
Additionally all language files are packed together into archives. They are created in pathToOtranCe/data/downloads.