Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Enhance container selection in docker dump #14292

Merged
merged 11 commits into from
Mar 22, 2022
Merged

[docs] Enhance container selection in docker dump #14292

merged 11 commits into from
Mar 22, 2022

Conversation

openscript
Copy link
Contributor

@openscript openscript commented Jan 10, 2021

The problem with the previous query was, that it sometimes selected multiple containers, which make the command respond with a hard to understand error message.

With this regular expression only the container is selected with the exact name.

The problem with the previous query was, that it sometimes selected multiple containers, which make the command file with a hard to understand message.
@openscript openscript changed the title Enhance container selection in docker dump [docs] Enhance container selection in docker dump Jan 10, 2021
@codecov-io
Copy link

codecov-io commented Jan 10, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@ca63a9d). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #14292   +/-   ##
=========================================
  Coverage          ?   41.84%           
=========================================
  Files             ?      744           
  Lines             ?    79727           
  Branches          ?        0           
=========================================
  Hits              ?    33364           
  Misses            ?    40854           
  Partials          ?     5509           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca63a9d...5b3cce6. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 10, 2021
@techknowlogick techknowlogick added type/docs This PR mainly updates/creates documentation theme/docker labels Jan 11, 2021
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 17, 2021
@6543 6543 modified the milestones: 1.13.2, 1.14.0 Jan 17, 2021
@lunny
Copy link
Member

lunny commented Feb 18, 2021

@openscript Any update?

@6543 6543 removed this from the 1.14.0 milestone Feb 19, 2021
@openscript
Copy link
Contributor Author

@lunny I'll check it today and give some feedback :)

@openscript
Copy link
Contributor Author

@lunny I can verify that it works without the quotes. This is I usually do my backups:

  1. Create a new backup
    docker exec -u git -it -w /tmp $(docker ps -qf name=^/gitea$) bash -c '/app/gitea/gitea dump -c /data/gitea/conf/app.ini -f gitea-backup.zip'
  2. Copy backup
    docker cp $(docker ps -qf name=^/gitea$):/tmp/gitea-backup.zip .
  3. Rename backup file
    mv gitea-backup.zip gitea-backup-$(date "+%Y%m%d-%H%M%S").zip

Maybe this section in the documentation can be enhanced further. When no file name for the dump is specified, a timestamp will be used. So you need to go into the container to find the actual file name.

@zeripath
Copy link
Contributor

zeripath commented Mar 3, 2021

Without quotes it is shell dependent. Bash works fine but zsh definitely will not.

@wxiaoguang
Copy link
Contributor

I think @delvh 's suggestion is pretty good. So, approve and move on?

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 9, 2022
@wxiaoguang wxiaoguang merged commit 5495ba7 into go-gitea:main Mar 22, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 22, 2022
* giteaofficial/main:
  Fix the bug: deploy key with write access can not push (go-gitea#19010)
  Renamed ctx.User to ctx.Doer. (go-gitea#19161)
  [docs] Enhance container selection in docker dump (go-gitea#14292)
  Cleanup protected branches when deleting users & teams (go-gitea#19158)
  Reorder issue templates and automatically add labels (go-gitea#18875)
  Use IterateBufferSize whilst querying repositories during adoption check (go-gitea#19140)
Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
* 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.
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
@delvh delvh added topic/distribution This PR changes something about the packaging of Gitea and removed theme/docker labels Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/distribution This PR changes something about the packaging of Gitea type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants