summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/usage/backup-and-restore.en-us.md
diff options
context:
space:
mode:
authorRobin <1105080+openscript@users.noreply.github.com>2022-03-22 06:50:31 +0100
committerGitHub <noreply@github.com>2022-03-22 13:50:31 +0800
commit5495ba7660979973ba19e304786135da474e0e64 (patch)
tree3cb11a60ae0f14880993ec8295cf978ecca58014 /docs/content/doc/usage/backup-and-restore.en-us.md
parent77d1c7bf2fbdc217cef564417c8fd82612834f6e (diff)
downloadgitea-5495ba7660979973ba19e304786135da474e0e64.tar.gz
gitea-5495ba7660979973ba19e304786135da474e0e64.zip
[docs] Enhance container selection in docker dump (#14292)
* Enhance container selection in docker dump The problem with the previous query was, that it sometimes selected multiple containers, which make the command file with a hard to understand message. Now, use '^...$' to make sure a regex full match.
Diffstat (limited to 'docs/content/doc/usage/backup-and-restore.en-us.md')
-rw-r--r--docs/content/doc/usage/backup-and-restore.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/usage/backup-and-restore.en-us.md b/docs/content/doc/usage/backup-and-restore.en-us.md
index 8d90379abe..7cb4a6230f 100644
--- a/docs/content/doc/usage/backup-and-restore.en-us.md
+++ b/docs/content/doc/usage/backup-and-restore.en-us.md
@@ -57,7 +57,7 @@ The command has to be executed with the `RUN_USER = <OS_USERNAME>` specified in
Example:
```none
-docker exec -u <OS_USERNAME> -it -w <--tempdir> $(docker ps -qf "name=<NAME_OF_DOCKER_CONTAINER>") bash -c '/app/gitea/gitea dump -c </path/to/app.ini>'
+docker exec -u <OS_USERNAME> -it -w <--tempdir> $(docker ps -qf 'name=^<NAME_OF_DOCKER_CONTAINER>$') bash -c '/app/gitea/gitea dump -c </path/to/app.ini>'
```
\*Note: `--tempdir` refers to the temporary directory of the docker environment used by Gitea; if you have not specified a custom `--tempdir`, then Gitea uses `/tmp` or the `TMPDIR` environment variable of the docker container. For `--tempdir` adjust your `docker exec` command options accordingly.