Skip to content

Commit

Permalink
#56 database restore documentation snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Sep 18, 2023
1 parent 6083113 commit adf9a39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ reading from the cast REST-api and recreate the contents by just writing to
another cast REST-api. This would make it possible to backup and restore really
easy. But for now you have to do something database specific.

Howto Restore a Database
========================

.. code-block:: shell
python commands.py production-db-to-local
cd backups
mv 2023-09-18-22:17:27_homepage.sql.gz db.staging.psql.gz
cd ..
cd deploy
ansible-playbook restore_database.yml --limit staging
********************
Media Backup/Restore
********************
Expand Down
2 changes: 2 additions & 0 deletions docs/releases/0.2.23.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
-------------------

Just a placeholder for now.

- A little bit more documentation for database restore #56

0 comments on commit adf9a39

Please sign in to comment.