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

Add support for multiple / variable backup times. #111

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

bastelfreak
Copy link
Member

Fixes #91
replaces #92

This now looks as this:

--- /etc/systemd/system/borg-backup.timer       2021-07-12 13:35:20.895432545 +0200
+++ /tmp/puppet-file20210720-108100-1p92i82     2021-07-20 09:46:01.670324290 +0200
@@ -1,11 +1,11 @@
 # THIS FILE IS MANAGED BY PUPPET
 [Unit]
-Description=Daily Timer for borg-backup
+Description=Daily Timer(s) for borg-backup

 [Timer]
 # OnBootSec=10min
 # OnUnitActiveSec=1d
-# Daily at 8am 
+# Daily named job "default" at 18:30:00
 OnCalendar=*-*-* 18:30:00
 Persistent=True

Fixes voxpupuli#91
replaces voxpupuli#92

This now looks as this:

```
--- /etc/systemd/system/borg-backup.timer	2021-07-12 13:35:20.895432545 +0200
+++ /tmp/puppet-file20210720-108100-1p92i82	2021-07-20 09:46:01.670324290 +0200
@@ -1,11 +1,11 @@
 # THIS FILE IS MANAGED BY PUPPET
 [Unit]
-Description=Daily Timer for borg-backup
+Description=Daily Timer(s) for borg-backup

 [Timer]
 # OnBootSec=10min
 # OnUnitActiveSec=1d
-# Daily at 8am
+# Daily named job "default" at 18:30:00
 OnCalendar=*-*-* 18:30:00
 Persistent=True
```
@bastelfreak
Copy link
Member Author

fedora is expected to fail because Puppet doesn't provide packages

@bastelfreak bastelfreak merged commit 456e3ff into voxpupuli:master Jul 20, 2021
@bastelfreak bastelfreak deleted the timers branch July 20, 2021 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduling the time the backup is ran
3 participants