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

Make restore overwrite behavior configurable #4817

Open
MichaelEischer opened this issue May 24, 2024 · 0 comments
Open

Make restore overwrite behavior configurable #4817

MichaelEischer opened this issue May 24, 2024 · 0 comments
Assignees
Labels
category: restore type: tracking tracks and sums up other issues on a specific topic

Comments

@MichaelEischer
Copy link
Member

Restore should implement additional options to make it more flexible. This is a tracking issue that sums up several existing issues.

New overwrite behaviors

Skip existing:

  • --ignore-existing
  • does not overwrite already existing files

Always overwrite (default):

  • --delete option to remove files not in the snapshot
  • will also overwrite readonly files etc.
  • if a file would overwrite a non-empty directory, refuse to do so unless --delete is also specified. That semantic is also used by rsync

Overwrite if newer:

  • --overwrite-if-newer (rsync --update) replaces local files if the snapshot content is newer (by file timestamp!)
  • allow implementing some kind of sync
  • --delete option works the same way as for "Always overwrite"

Optimizations:

  • restore only changed files: user can select to trust timestamp+size (default) or to let restic check the file contents of everything

Addresses Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: restore type: tracking tracks and sums up other issues on a specific topic
Projects
Status: In Progress
Development

No branches or pull requests

1 participant