diff options
author | David Runge <dave@sleepmap.de> | 2015-03-20 01:02:04 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-03-20 01:02:04 +0100 |
commit | c10efa7645f9f135b0a8513eeb69cb9d162d1728 (patch) | |
tree | 2d8768103e4cfbb84512e78570fd60fa5d689a53 /system | |
parent | a7b06bdff0d67ad640074e3760dcc5b667b64663 (diff) | |
download | crypted-backups-c10efa7645f9f135b0a8513eeb69cb9d162d1728.tar.gz crypted-backups-c10efa7645f9f135b0a8513eeb69cb9d162d1728.tar.bz2 crypted-backups-c10efa7645f9f135b0a8513eeb69cb9d162d1728.tar.xz crypted-backups-c10efa7645f9f135b0a8513eeb69cb9d162d1728.zip |
backup-mail: Adding first version of backup-mail script, service and timer.
Diffstat (limited to 'system')
-rw-r--r-- | system/backup-mail.service | 11 | ||||
-rw-r--r-- | system/backup-mail.timer | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/system/backup-mail.service b/system/backup-mail.service new file mode 100644 index 0000000..b211205 --- /dev/null +++ b/system/backup-mail.service @@ -0,0 +1,11 @@ +[Unit] +Description=Backup mail accounts and mailman mailing lists +ConditionFileIsExecutable=/usr/lib/systemd/scripts/backup-mail + +[Service] +EnvironmentFile=/etc/backup-settings +Nice=19 +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=/usr/lib/systemd/scripts/backup-mail + diff --git a/system/backup-mail.timer b/system/backup-mail.timer new file mode 100644 index 0000000..22367df --- /dev/null +++ b/system/backup-mail.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Backup mail and mailman every first day of the month + +[Timer] +# Every 1st of each month at 5:00 +OnCalendar=*-*-1 05:00 +Persistent=true + +[Install] +WantedBy=timers.target |