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

gitea dump doesn't backup relocated data (lfs, attachments, etc) #12828

Closed
2 of 7 tasks
snoopydo opened this issue Sep 14, 2020 · 7 comments
Closed
2 of 7 tasks

gitea dump doesn't backup relocated data (lfs, attachments, etc) #12828

snoopydo opened this issue Sep 14, 2020 · 7 comments
Labels
Milestone

Comments

@snoopydo
Copy link

snoopydo commented Sep 14, 2020

  • Gitea version (or commit ref): 1.12.4
  • Git version: 2.28.0.windows.1
  • Operating system: Windows 10 & Windows Server 2012
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When running gitea dump the zip archive doesn't actually contain any repository or lfs data.
gitea is installed into c:\gitea with standard custom, data & log sub folders, however in my app.ini i have specified

[repository]
ROOT = F:/Gitea/Data/repositories

[attachment]
PATH = F:/Gitea/Data/attachments

[server]
LFS_CONTENT_PATH = F:/Gitea/data/lfs

update 1: gitea and git versions.
update 2: changed title, repositories are backed up.

@jolheiser
Copy link
Member

Did you pass the config flag to the dump command?

@snoopydo
Copy link
Author

Yes. I tried both methods from c:\gitea, gitea dump and gitea dump -config c:\Gitea\custom\conf\app.ini

@jolheiser
Copy link
Member

Try with the config flag before the dump sub-command

@6543
Copy link
Member

6543 commented Sep 14, 2020

@snoopydo -c or --config

@snoopydo
Copy link
Author

I ran gitea --config c:\Gitea\custom\conf\app.ini dump --skip-log

after a bit more digging, in the gitea-dump .zip there is gitea-repo.zip which appeared to be an empty/corrupt file which has the repositories in it(after using winzip to look at it, windows native zip view shows nothing). However both the attachments and lfs data are still not included.

@snoopydo
Copy link
Author

snoopydo commented Sep 14, 2020

Observations after some more checking.

  1. repositories are backed up, though archive appears empty/broken on windows via the native archive viewer app
  2. data folders that are moved out of the install location (via config settings) are missed from the backup
  3. there can be two copies of the repositories in the back up, 1 via the zip file and the 2nd via copy of the data folder.

@snoopydo snoopydo changed the title gitea dump doesn't backup repositories or lfs data gitea dump doesn't backup relocated data (lfs, attachments, etc) Sep 14, 2020
@lunny lunny added the type/bug label Sep 15, 2020
@lunny lunny added this to the 1.13.0 milestone Sep 15, 2020
@lunny
Copy link
Member

lunny commented Sep 30, 2020

I think we have resolved this on #12813

@lunny lunny closed this as completed Sep 30, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants