diff options
author | Robin <1105080+openscript@users.noreply.github.com> | 2022-03-22 06:50:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 13:50:31 +0800 |
commit | 5495ba7660979973ba19e304786135da474e0e64 (patch) | |
tree | 3cb11a60ae0f14880993ec8295cf978ecca58014 /docs/content/doc/usage/backup-and-restore.en-us.md | |
parent | 77d1c7bf2fbdc217cef564417c8fd82612834f6e (diff) | |
download | gitea-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.md | 2 |
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. |