backup timers after online

This commit is contained in:
cronekorkn 2022-09-30 09:59:28 +02:00
parent 05eecb72e2
commit 8669124c73
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
3 changed files with 7 additions and 0 deletions

View file

@ -22,6 +22,9 @@ defaults = {
'command': '/opt/backup/backup_all',
'when': '1:00',
'persistent': True,
'after': {
'network-online.target',
},
},
},
}

View file

@ -16,6 +16,7 @@ def systemd(metadata):
f'{name}.timer': {
'Unit':{
'Description': f'{name} timer',
'After': config.get('after', set()),
},
'Timer': {
'OnCalendar': config['when'],

View file

@ -4,6 +4,9 @@ defaults = {
'command': '/opt/zfs-mirror',
'when': '2:00',
'persistent': True,
'after': {
'network-online.target',
},
},
},
}