add pgbackup timers for systemd
This commit is contained in:
parent
da4a9ea58d
commit
e422c11d94
|
@ -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
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=backup postgres database
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 2:00:00
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue