MI-DPLA / combine

Combine /kämˌbīn/ - Metadata Aggregator Platform
MIT License
26 stars 11 forks source link

API / command line state export/import #350

Closed ghukill closed 5 years ago

ghukill commented 5 years ago

Would be nice to have means to trigger a state export via API or command line, such that it could be scheduled as a cron.

ghukill commented 5 years ago

Put as function under manage.py, then could run cron as combine user with something like:

/long/path/to/env/python /opt/combine/manage.py exportstateall
ghukill commented 5 years ago

Done - combination of export_all method for StateIO, and exportstate manage.py command.