From 07f4f4e5fbe19716b5d28e494929d91f8b599cf3 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 7 Oct 2019 13:06:39 +0200 Subject: [PATCH] added timer and service --- systemd/backbit.service | 6 ++++++ systemd/backbit.timer | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 systemd/backbit.service create mode 100644 systemd/backbit.timer diff --git a/systemd/backbit.service b/systemd/backbit.service new file mode 100644 index 0000000..0a8dab9 --- /dev/null +++ b/systemd/backbit.service @@ -0,0 +1,6 @@ +[Unit] +Description=Backup databases and folders + +[Service] +Type=oneshot +ExecStart=/usr/bin/backbit diff --git a/systemd/backbit.timer b/systemd/backbit.timer new file mode 100644 index 0000000..c42b4d7 --- /dev/null +++ b/systemd/backbit.timer @@ -0,0 +1,9 @@ +[Unit] +Description=BackBit daily + +[Timer] +OnCalendar=03:00:00 +Persistent=true + +[Install] +WantedBy=timers.target