Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 22c5504

Browse files
committed
Add note
1 parent 3d8718d commit 22c5504

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/how-to/configure.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,16 @@ file located in the `/app/codegate_volume/db` directory inside the container.
7777
This database file is mounted to the persistent Docker volume on your host
7878
system. This means that the database file is not lost when you stop or remove
7979
the container, but it is still a good idea to back up the database file
80-
regularly.
80+
regularly. You might also want to copy or move your configuration to a different
81+
system.
82+
83+
:::note
84+
85+
The CodeGate container must be running to use these commands.
86+
87+
:::
88+
89+
### Back up
8190

8291
To back up the database, you can use the `docker cp` command to copy the
8392
database file from the container to your host system. For example, if you want
@@ -92,6 +101,8 @@ docker cp codegate:/app/codegate_volume/db/codegate.db ./codegate.db
92101
This copies the database file from the container to your current working
93102
directory. You can then copy it to a safe location.
94103

104+
### Restore
105+
95106
You can also use this command to restore the database from a backup. For
96107
example, if you have a backup of the database file in your current working
97108
directory, you can restore it to the container by running:

0 commit comments

Comments
 (0)