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

Fix bug when receiving repeated excludes from restic #77

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

drdo
Copy link
Owner

@drdo drdo commented Sep 16, 2024

restic can return repeated excluded paths for a snapshot which resulted in a primary key constraint failure when inserting.

Here we turn paths, excludes and tags into sets to ensure uniqueness.

Closes #76

restic can return repeated excluded paths for a snapshot which resulted in a primary key constraint failure when inserting.

Here we turn paths, excludes and tags into sets to ensure uniqueness.
@drdo drdo force-pushed the repeated-excludes branch from 30096ef to a6113d8 Compare September 16, 2024 22:54
@drdo drdo merged commit c8afa2a into main Sep 17, 2024
6 checks passed
@drdo drdo deleted the repeated-excludes branch September 17, 2024 22:19
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.

UNIQUE constraint failed: snapshot_excludes.hash, snapshot_excludes.path
1 participant