Skip to content

Commit

Permalink
Update backup.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbstertruck3 authored Oct 17, 2024
1 parent 50379d9 commit 700fcd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/databases/backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Set up a cronjob

Backup your database running on docker automatically everyday by initiating a cronjob.

**Note**: Make sure you are in the care directory at the time of setting this up

Install the package
~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -73,7 +71,7 @@ For a debian based os:
Restoration of the Database
===========================

We are basically deleting the container's existing database and creating a new database with the same name. then we will use ``pg_restore`` to restore the database. Run the following commands in your terminal.
We are basically deleting the container's existing database and creating a new database with the same name. Then we will use ``pg_restore`` to restore the database. Run the following commands in your terminal.

Delete the existing database:

Expand All @@ -99,7 +97,7 @@ Restore the database:

.. code:: bash
docker exec -it $(docker ps --format '{{.Names}}' | grep 'care-db') pg_restore -U postgres -d care ./backups/<file name>.
docker exec -it $(docker ps --format '{{.Names}}' | grep 'care-db') pg_restore -U postgres -d care /backups/<file name>.
------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 700fcd8

Please sign in to comment.