Skip to content

Conversation

@Strit
Copy link

@Strit Strit commented Feb 18, 2025

The current systemd timer triggers to soon in the boot process for network based source and destinations to be available.
See #486
Creating a drop-in timer in /etc/systemd/system/btrbk.timer.d/ with a delay works.

This PR adds a delay.timer unit with a 5 min delay that makes the timer wait for 5 minutes before it runs the backup. This should be more than enough time to make sure any remote source or destination is available to the system. If needed, we can adjust the delay by just changing the OnBootSec=5m line in delay.time.in to something more appropriate.

Should fix #486 .

Add delay.timer file that delays the trigger by 5 minutes.
Add the delay.timer to Makefile and install it to /etc/systemd/system/btrbk.timer.d/ so it's used when the timer is active.
Forgot some variables, so fix those up.
@Rongronggg9
Copy link

Creating a drop-in timer in /etc/systemd/system/btrbk.timer.d/ with a delay works

You can simply merge these options into contrib/systemd/btrbk.timer.in since you are submitting a PR instead of implementing a temporary fix.

@Strit
Copy link
Author

Strit commented Sep 22, 2025

I didn't want to change the regular timer, since not everyone needs to wait.

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.

btrbk.timer runs too soon during boot process

2 participants