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

Split mapping.yaml into one file per backup #335

Open
mtkennerly opened this issue Apr 19, 2024 · 0 comments
Open

Split mapping.yaml into one file per backup #335

mtkennerly opened this issue Apr 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mtkennerly
Copy link
Owner

What's your idea?

Right now, mapping.yaml has to keep track of the full sequence of backups. This causes some problems:

  • If two computers have divergent backups, you either have to choose one set (using the cloud upload or download function) or manually edit mapping.yaml to combine them.
  • You can't just copy/paste a backup in order to share it with someone.
  • With automatic cloud sync enabled, if the local and cloud state are out of sync before a restore, all we can do is warn the user. We can't just download the latest cloud backups because we can't automatically resolve the conflicts in mapping.yaml.

By splitting mapping.yaml into one YAML file per backup, we can solve those issues:

  • Divergent backups would be much less common. They would probably only happen when editing backup comments or locking a backup, which we'd need to make sure to sync.
  • Full backups would be atomic and easy to copy. Differential backups would still need some care, though.
  • We could download the latest backups more safely, unless an individual backup were present on both systems in a divergent state.
@mtkennerly mtkennerly added the enhancement New feature or request label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant