Skip to content

Conversation

@MichaelEischer
Copy link
Member

@MichaelEischer MichaelEischer commented Sep 14, 2024

What does this PR change? What problem does it solve?

Since restic 0.17.1, files with type irregular could end up in a snapshot as the corresponding error was filtered due to #4977 . This PR fixes the backup command and extends repair snapshots to remove irregular files.

Was the change previously discussed in an issue or on the forum?

Fixes https://forum.restic.net/t/errors-found-by-check-1-invalid-type-irregular-2-ciphertext-verification-failed/8447/2

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

@DimitryAndric
Copy link

I can confirm that this also "fixes" my snapshots, in the sense that it deletes the irregular files from the snapshot(s).

However, I have always had these irregular files, which are usually just symlinks (i.e. made by Cygwin or the Microsoft Store), and before 0.17.1, these were never a problem. Well, except for cluttering up the messages output when doing the backup.

@DimitryAndric
Copy link

Btw I would really suggest removing the 0.17.1 downloads in favor of 0.17.0, as almost all Windows users will now start corrupting their backups, and it is quite silent until you run a restic check.

restic cannot backup irregular files as those don't behave like normal
files. Thus skip them with an error.
Copy link
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MichaelEischer MichaelEischer merged commit c3b3120 into restic:master Oct 16, 2024
@MichaelEischer MichaelEischer deleted the fix-backup-irregular branch October 16, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants