added systemd unit file and timer.

This commit is contained in:
Adam Rabjerg
2021-03-22 20:13:25 +01:00
parent 9b36fabdca
commit cc4aef7f85
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Making backup of NAME
[Service]
Type=oneshot
WorkingDirectory=/home/user/git/disaster-recovery
ExecStart=/home/user/git/disaster-recovery/make_backup.sh backup.env
User=root
StandardOutput=journal

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Backup of NAME directory, disaster recovery
[Timer]
OnCalendar=Mon-Sun *-*-* 04:00:00
[Install]
WantedBy=timers.target