This repository was archived by the owner on Jul 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,16 @@ file located in the `/app/codegate_volume/db` directory inside the container.
7777This database file is mounted to the persistent Docker volume on your host
7878system. This means that the database file is not lost when you stop or remove
7979the 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
8291To back up the database, you can use the ` docker cp ` command to copy the
8392database 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
92101This copies the database file from the container to your current working
93102directory. You can then copy it to a safe location.
94103
104+ ### Restore
105+
95106You can also use this command to restore the database from a backup. For
96107example, if you have a backup of the database file in your current working
97108directory, you can restore it to the container by running:
You can’t perform that action at this time.
0 commit comments