From 4e19db5f3a5804fdd523dd913ecd3bce3393e7e0 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Thu, 5 May 2016 02:02:25 +0000 Subject: [PATCH] Add systemd units --- btrfish.service | 10 ++++++++++ btrfish.timer | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 btrfish.service create mode 100644 btrfish.timer diff --git a/btrfish.service b/btrfish.service new file mode 100644 index 0000000..06f3613 --- /dev/null +++ b/btrfish.service @@ -0,0 +1,10 @@ +[Unit] +Description=Create incremental btrfs backups and push them to a backup host + +[Service] +User=backups +Type=oneshot +ExecStart=/var/backups/backup.fish + +[Install] +WantedBy=default.target diff --git a/btrfish.timer b/btrfish.timer new file mode 100644 index 0000000..d66bece --- /dev/null +++ b/btrfish.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Run btrfish.serivce daily + +[Timer] +OnCalendar=daily + +[Install] +WantedBy=default.target