diff --git a/web/service/pgbackup.service b/web/service/pgbackup.service new file mode 100644 index 0000000..0bbe034 --- /dev/null +++ b/web/service/pgbackup.service @@ -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 \ No newline at end of file diff --git a/web/service/pgbackup.timer b/web/service/pgbackup.timer new file mode 100644 index 0000000..1391c3b --- /dev/null +++ b/web/service/pgbackup.timer @@ -0,0 +1,8 @@ +[Unit] +Description=backup postgres database + +[Timer] +OnCalendar=*-*-* 2:00:00 + +[Install] +WantedBy=multi-user.target \ No newline at end of file