diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/backup-websites.service | 11 | ||||
-rw-r--r-- | system/backup-websites.timer | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/system/backup-websites.service b/system/backup-websites.service new file mode 100644 index 0000000..c350b21 --- /dev/null +++ b/system/backup-websites.service @@ -0,0 +1,11 @@ +[Unit] +Description=Backup Websites +ConditionFileIsExecutable=/usr/lib/systemd/scripts/backup-websites + +[Service] +EnvironmentFile=/etc/backup-settings +Nice=19 +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=/usr/lib/systemd/scripts/backup-websites + diff --git a/system/backup-websites.timer b/system/backup-websites.timer new file mode 100644 index 0000000..5c08795 --- /dev/null +++ b/system/backup-websites.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Backup websites every 1st and 16th of each montih at 03:00 + +[Timer] +# Every 1st and 16th of each month at 03:00 +OnCalendar=*-*-1,16 03:00 +Persistent=true + +[Install] +WantedBy=timers.target |