add pgbackup timers for systemd

This commit is contained in:
simon 2022-11-03 12:16:22 +07:00
parent da4a9ea58d
commit e422c11d94
Signed by: simon
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
[Unit]
Description=backup postgres database
[Service]
User=simon
Group=simon
Type=oneshot
ExecStart=bash /home/simon/docker/helper_scripts/db_backup.sh

View File

@ -0,0 +1,8 @@
[Unit]
Description=backup postgres database
[Timer]
OnCalendar=*-*-* 2:00:00
[Install]
WantedBy=multi-user.target