From 66cacf93ae2bb461bf1026ea3b8971fdac52ec40 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 1 Sep 2020 17:28:53 +0100 Subject: [PATCH] add backup-pass --- user/backup-pass.service | 10 ++++++++++ user/backup-pass.timer | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 user/backup-pass.service create mode 100644 user/backup-pass.timer diff --git a/user/backup-pass.service b/user/backup-pass.service new file mode 100644 index 0000000..e26e634 --- /dev/null +++ b/user/backup-pass.service @@ -0,0 +1,10 @@ +[Unit] +Description=Backup kdbx password files + +[Service] +WorkingDirectory=/home/ray/.Sync/Pass/ +ExecStart=/home/ray/.Sync/Pass/backup.sh + +[Install] +WantedBy=default.target + diff --git a/user/backup-pass.timer b/user/backup-pass.timer new file mode 100644 index 0000000..a532888 --- /dev/null +++ b/user/backup-pass.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Periodically run backup-pass + +[Timer] +OnCalendar=*-*-* 22:00:00 +OnCalendar=*-*-* 10:00:00 + +[Install] +WantedBy=timers.target