diff options
-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 |