Change backup Frequency in config-panel is not applied
xoddark opened this issue · 2 comments
xoddark commented
Describe the bug
When change of the backup Frequency (OnCalendar) in config-panel, the change is not applied to system.
Context
- Hardware: Dedicated server ...
- YunoHost version: 4.3.6
- I have access to my server: Through SSH | through the webadmin
- Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
- Using, or trying to install package version/branch: borg 1.1.16~ynh28
Steps to reproduce
- Installing borg with :
- with just ynh conf backup (enough to test)
- backup every fifteen minutes (for example) / set Frequency to : *:0/15
- Always mail (to know when backup is finished)
- Wait and see than a backup is done every hours
- Change borg backup Frequency to Daily
- Go to 'app borg' option
- Click on 'Config Panel' button
- Change Frequency to 'Frequency'
- Click on save
- Observe than backup is always done every fifteen minutes
And If you launch the command systemctl stop borg.timer
on server, you have this message :
Warning: The unit file, source configuration file or drop-ins of borg.timer changed on disk. Run 'systemctl daemon-reload' to reload units.
Expected behavior
When change in config-panel is saved, we expect than the change was applied.
Yunohost should probably run the command (or equivalent) :
systemctl daemon-reload
olberger commented
Just to add my +1
Before:
# systemctl status borg.timer
Warning: The unit file, source configuration file or drop-ins of borg.timer changed on disk. Run 'systemctl daemon-reload' to reload units.
● borg.timer - Run backup borg regularly
Loaded: loaded (/etc/systemd/system/borg.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Tue 2022-05-03 14:23:26 CEST; 24min ago
Trigger: Wed 2022-05-04 00:00:00 CEST; 9h left
Triggers: ● borg.service
May 03 14:23:26 ynh.cgt-imt.org systemd[1]: Started Run backup borg regularly.
After:
root@ynh:~# systemctl daemon-reload
root@ynh:~# systemctl status borg.timer
● borg.timer - Run backup borg regularly
Loaded: loaded (/etc/systemd/system/borg.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Tue 2022-05-03 14:23:26 CEST; 24min ago
Trigger: Tue 2022-05-03 15:00:00 CEST; 11min left
Triggers: ● borg.service
May 03 14:23:26 ynh.cgt-imt.org systemd[1]: Started Run backup borg regularly.
rochacbruno commented
+1 I just had this same issue, adding daemon-reload and restart borg.timer worked for me.
Can we adjust it on the package somewhere?