diff options
author | David Runge <dave@sleepmap.de> | 2015-03-19 02:19:20 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-03-19 02:19:20 +0100 |
commit | 78d8d16814f3faa1ff6d5c87a1d215907b991069 (patch) | |
tree | 01c3d01af43e6206a7403e4c0ae261b910dd8cc7 | |
parent | 72b72e691e2ba10393239b727f37fd0bd3c15341 (diff) | |
download | crypted-backups-78d8d16814f3faa1ff6d5c87a1d215907b991069.tar.gz crypted-backups-78d8d16814f3faa1ff6d5c87a1d215907b991069.tar.bz2 crypted-backups-78d8d16814f3faa1ff6d5c87a1d215907b991069.tar.xz crypted-backups-78d8d16814f3faa1ff6d5c87a1d215907b991069.zip |
user/backup-*: Adding the first version of Firefox and Thunderbird backup services/timerse.
-rw-r--r-- | user/backup-firefox.service | 12 | ||||
-rw-r--r-- | user/backup-firefox.timer | 10 | ||||
-rw-r--r-- | user/backup-thunderbird.service | 12 | ||||
-rw-r--r-- | user/backup-thunderbird.timer | 10 |
4 files changed, 44 insertions, 0 deletions
diff --git a/user/backup-firefox.service b/user/backup-firefox.service new file mode 100644 index 0000000..ce68613 --- /dev/null +++ b/user/backup-firefox.service @@ -0,0 +1,12 @@ +[Unit] +Description=Backup ~/.mozilla/firefox/<profile> directory +ConditionFileIsExecutable=/usr/lib/systemd/scripts/backup-firefox +ConditionKernelCommandLine=!systemd.setenv=REALTIME=true + +[Service] +EnvironmentFile=/etc/backup-settings +Nice=19 +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=/usr/lib/systemd/scripts/backup-firefox + diff --git a/user/backup-firefox.timer b/user/backup-firefox.timer new file mode 100644 index 0000000..8319b09 --- /dev/null +++ b/user/backup-firefox.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Daily backup of Firefox profile + +[Timer] +OnBootSec=1m +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/user/backup-thunderbird.service b/user/backup-thunderbird.service new file mode 100644 index 0000000..a954f18 --- /dev/null +++ b/user/backup-thunderbird.service @@ -0,0 +1,12 @@ +[Unit] +Description=Backup ~/.thunderbird/<profile> directory +ConditionFileIsExecutable=/usr/lib/systemd/scripts/backup-thunderbird +ConditionKernelCommandLine=!systemd.setenv=REALTIME=true + +[Service] +EnvironmentFile=/etc/backup-settings +Nice=19 +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=/usr/lib/systemd/scripts/backup-thunderbird + diff --git a/user/backup-thunderbird.timer b/user/backup-thunderbird.timer new file mode 100644 index 0000000..3dc9c41 --- /dev/null +++ b/user/backup-thunderbird.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Daily backup of Thunderbird profile + +[Timer] +OnBootSec=1m +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target |