From 78d8d16814f3faa1ff6d5c87a1d215907b991069 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 19 Mar 2015 02:19:20 +0100 Subject: user/backup-*: Adding the first version of Firefox and Thunderbird backup services/timerse. --- user/backup-firefox.service | 12 ++++++++++++ user/backup-firefox.timer | 10 ++++++++++ user/backup-thunderbird.service | 12 ++++++++++++ user/backup-thunderbird.timer | 10 ++++++++++ 4 files changed, 44 insertions(+) create mode 100644 user/backup-firefox.service create mode 100644 user/backup-firefox.timer create mode 100644 user/backup-thunderbird.service create mode 100644 user/backup-thunderbird.timer (limited to 'user') 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/ 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/ 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 -- cgit v1.2.3-70-g09d2