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

View File

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

View File

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