pulp / pulp/pulp-operator

[RFE] Create a cronjob to run backups

Open
#818 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement go-alpha prio-list
Dominant language
Go
Stars
88
Forks
66
Avg merge
53m
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.
Kubernetes has the cronjob resource that runs a job periodically on a given schedule. We could use it to schedule Pulp backups.

Describe the solution you'd like
The operator could create a k8s cronjob resource that would create a PulpBackup instance to periodically run a backup and delete it as soon as the backup finishes.

Additional context
We would probably need to also modify the backup controller implementation to keep different "versions" of files based on the data they were copied. Which, maybe, would also need to create another cronjob resource to rotate old backups!?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Kubernetes CronJob documentation and the operator's existing PulpBackup and backup controller implementations. Define how a scheduled CronJob creates and removes PulpBackup resources, then resolve whether backup version retention and rotation require a second CronJob before implementation; done means scheduled backups and retention behavior are specified and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.