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

Update back-up restore example for 1.13 changes #14374

Merged
merged 3 commits into from
Jan 19, 2021
Merged

Update back-up restore example for 1.13 changes #14374

merged 3 commits into from
Jan 19, 2021

Conversation

vosdev
Copy link
Contributor

@vosdev vosdev commented Jan 18, 2021

Update back-up/restore documentation with the recent changes made to the gitea dump command in version 1.13

Fixes #14373

Signed-off-by: Daniël Vos danielvos@outlook.com

Signed-off-by: Daniël Vos <danielvos@outlook.com>
@codecov-io
Copy link

Codecov Report

Merging #14374 (89f99d4) into master (127907c) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14374   +/-   ##
=======================================
  Coverage   41.84%   41.85%           
=======================================
  Files         744      744           
  Lines       79738    79738           
=======================================
+ Hits        33366    33372    +6     
+ Misses      40861    40857    -4     
+ Partials     5511     5509    -2     
Impacted Files Coverage Δ
modules/git/repo_base_nogogit.go 63.63% <0.00%> (-9.10%) ⬇️
modules/git/utils.go 77.77% <0.00%> (-2.78%) ⬇️
services/pull/pull.go 42.15% <0.00%> (-0.50%) ⬇️
modules/queue/unique_queue_disk_channel.go 55.38% <0.00%> (+1.53%) ⬆️
modules/git/repo_commit_nogogit.go 65.00% <0.00%> (+1.66%) ⬆️
modules/process/manager.go 75.00% <0.00%> (+2.50%) ⬆️
modules/indexer/stats/db.go 68.00% <0.00%> (+12.00%) ⬆️
modules/util/timer.go 85.71% <0.00%> (+42.85%) ⬆️

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 127907c...89f99d4. 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 18, 2021
Comment on lines 84 to +88
mysql --default-character-set=utf8mb4 -u$USER -p$PASS $DATABASE <gitea-db.sql
# or sqlite3 $DATABASE_PATH <gitea-db.sql
# sqlite3
sqlite3 $DATABASE_PATH <gitea-db.sql
# postgres
psql -U $USER -d $DATABASE < gitea-db.sql
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this assumes that the original DB user (same as before backup procedure) exists. In case for different DB user, it must be granted GRANT ALL PRIVILEGES (mysql) or REASSIGN OWNED or (ALTER DATABASE OWNER) (postgres)

@6543 6543 added the type/docs This PR mainly updates/creates documentation label Jan 18, 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 18, 2021
@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 Jan 18, 2021
@techknowlogick techknowlogick merged commit 185c5ae into go-gitea:master Jan 19, 2021
a1012112796 added a commit to a1012112796/gitea that referenced this pull request Jan 19, 2021
* master:
  Add pager to the branches page (go-gitea#14202)
  Removed invalid form tag (go-gitea#14391)
  Update back-up restore example for 1.13 changes (go-gitea#14374)
  It seems vet on windows is unnecessary (go-gitea#14302)
@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
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. type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Back-up restore broke with 1.13
8 participants