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

Automated backups as explained in documentation do not work on NixOS (and possibly other distributions) #8639

Closed
httpdev opened this issue Jan 18, 2025 · 1 comment · Fixed by #8640

Comments

@httpdev
Copy link
Contributor

httpdev commented Jan 18, 2025

After following the instructions in the documentation for setting up automated backup as soon as the USB storage is connected, the udev rule is never triggered on NixOS 24.11 and thus the backup is not started.

The reason is that /etc/backups/40-backup.rules has too high priority, before 50-udev-default.rules and 60-persistent-storage.rules. I suspect that some parts of the environment that are matched against are not populated when the rule is applied.

The fix is to change the priority by renaming the file to 80-backup.rules.

httpdev added a commit to httpdev/borg that referenced this issue Jan 18, 2025
fixes borgbackup#8639
The priority of 40 for the udev rules as stated in to documentation
applies the rule too early on some systems, which prevents the rule from
matching. This commit changes the priority to 80.
@ThomasWaldmann
Copy link
Member

Thanks for reporting and fixing this.

Guess the numbering (that determines the order) might depend on the dist that is being used?

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 a pull request may close this issue.

2 participants