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

Project level backup and restore #7066

Closed
9 tasks done
nijel opened this issue Jan 6, 2022 · 2 comments · Fixed by #7922
Closed
9 tasks done

Project level backup and restore #7066

nijel opened this issue Jan 6, 2022 · 2 comments · Fixed by #7922
Assignees
Labels
enhancement Adding or requesting a new feature.
Milestone

Comments

@nijel
Copy link
Member

nijel commented Jan 6, 2022

Describe the problem

It would be useful to support backup/restore of individual projects. Use cases:

  • Individual backups from shared instance, such as Hosted Weblate
  • Migration to different Weblate instance

Describe the solution you'd like

Backup would generate a ZIP file with all project configuration and metadata. The actual format might be JSON as that's widely used, and we use it already for other exports.

Content:

  • Export metadata (version, timestamp, instance, ...)
  • Project configuration
  • Project labels
  • Translation memory as JSON

For each component:

  • Component configuration
  • Repository content as ZIP
  • All translations configuration
  • Unit metadata
    • contains flags, explanations, ignored checks, comments, suggestions, labels
  • Screenshots

The objects will be referenced by current primary ID inside the backup.

Restore will be a two phase with preview of content to confirm importing.

  1. Create project
  2. Import labels, translation memory
  3. Unpack repository content
  4. Create component without triggering sync
  5. Create translations
  6. Create units
  7. Create screenshots
  8. Trigger sync in the background

Describe alternatives you've considered

Full server backup does not serve well for some use cases.

Screenshots

No response

Additional context

No response

@nijel nijel added the enhancement Adding or requesting a new feature. label Jan 6, 2022
@nijel nijel added this to the 4.12 milestone Jan 6, 2022
@nijel nijel modified the milestones: 4.12, 4.13 Apr 14, 2022
nijel added a commit to WeblateOrg/weblate_schemas that referenced this issue May 25, 2022
@orangesunny
Copy link
Member

This is an exciting feature for many Weblate users, but @rhofer and @KadAnna are very much expecting it. I just want to let you know it should be coming in 4.13. You can also comment here if you would feel the scope’s missing anything.

@nijel nijel modified the milestones: 4.13, 4.13.1 Jun 15, 2022
@nijel nijel self-assigned this Jun 15, 2022
@nijel nijel modified the milestones: 4.13.1, 4.14 Jul 1, 2022
nijel added a commit to WeblateOrg/weblate_schemas that referenced this issue Jul 25, 2022
nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2022
nijel added a commit to nijel/weblate that referenced this issue Jul 25, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 16, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 17, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 17, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 17, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 17, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 18, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 18, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 18, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 19, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 19, 2022
nijel added a commit to nijel/weblate that referenced this issue Aug 19, 2022
nijel added a commit that referenced this issue Aug 19, 2022
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants