MyApp - Help

Backup

With the following command, you create a backup of your piki. It contains out of two files. pages.json includes userdata, bottombar configurations and so on. The pages are included in pages.tgz.

$ cd <PROJECT_DIRECTORY>
$ source venv/bin/activate
$ python manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e sessions -e auth.Permission -e sessions -e pages --indent 2 > pages.json
$ tar -czf pages.tgz data/pages data/media

Recovery

Be carefull with these commands. They delete all the data, before recovering from the backup files!

$ cd <PROJECT_DIRECTORY>
$ source venv/bin/activate
$ rm db.sqlite3
$ rm -rf data/pages data/media
$ python manage.py migrate
$ python manage.py loaddata pages.json
$ tar -xvzf pages.tgz