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

Scheduled repository backup / restore feature #1082

Open
milkyway0308 opened this issue Jan 27, 2022 · 4 comments
Open

Scheduled repository backup / restore feature #1082

milkyway0308 opened this issue Jan 27, 2022 · 4 comments
Labels
feature New feature request

Comments

@milkyway0308
Copy link
Sponsor

Request details

Support repository backup system repeating every n hours, and backup file import feature.

@dzikoysk dzikoysk added feature New feature request and removed triage labels Jan 27, 2022
@dzikoysk
Copy link
Owner

Yeah, we don't have any kind of backup system, good idea to consider at least a basic one.

I think we're mostly considering only local infrastructure such as file system & sqlite? I guess it's up to the user to maintain backups of external components like AWS S3/other remote DBs?

Also, thanks for your support! :)

@codesplode
Copy link
Contributor

Not sure what Javalin has in the way of scheduling, but two paths that come to mind:

  • A very simplistic backup using coroutines on a delayed check
  • A much more flexible and configurable solution using Quartz which would allow user scheduling and UI based customization later as the schedules are very configurable, handle "misfires" (when a task is missed, etc.). The library itself is pretty lightweight, but the first use can feel a little heavy since you have so many options with it. Just using the file system and no other fancy stores should be a pretty quick setup.

@dzikoysk
Copy link
Owner

dzikoysk commented May 6, 2022

Scheduling itself is not a problem, it's more likely the way how we'd like to archive things, especially having multiple infrastructure targets. In general I think that Reposilite has pretty straightforward file structure that you can just backup as a whole using external tools like even such simple thing like a cron.

@codesplode
Copy link
Contributor

codesplode commented May 6, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants