Move backups to absolute time

This commit is contained in:
Salt 2020-08-15 14:48:11 -05:00
parent 3866fa159d
commit af9596d9f0
3 changed files with 2 additions and 5 deletions

View File

@ -23,7 +23,6 @@ all:
ansible_pull_time: "*-*-* 03:00:00"
aws:
backup_bucket: 9iron-backups-home
backups_frequency: 1d
desktop_web_repo: "https://git.9iron.club/salt/www"
zerotier_network_id: !vault |
$ANSIBLE_VAULT;1.1;AES256
@ -45,7 +44,6 @@ all:
children:
dbservers:
vars:
backups_frequency: 12h
hosts:
psql1.9iron.club:
webservers:
@ -54,7 +52,6 @@ all:
fedi1.9iron.club:
gameservers:
vars:
backups_frequency: 6h
steam_api_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
39616163316634306633623435636633623966306537636639316439343839393231376661666335

View File

@ -2,4 +2,4 @@
# vim:ft=ansible:
backups_outdir: "/opt/backups/out"
backups_boot_delay: 1h
backups_frequency: 24h
backups_time: "*-*-* 02:00:00"

View File

@ -5,7 +5,7 @@ Description=9iron backup timer
[Timer]
Persistent=true
OnBootSec={{ backups_boot_delay }}
OnUnitActiveSec={{ backups_frequency }}
OnCalendar={{ backups_time }}
[Install]
WantedBy=timers.target