From a8a6111e22a69a315bfb1fb112d24a03bb8c1fa3 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 17 Sep 2025 22:11:37 +0200 Subject: bin: Add 'do-backup.sh' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .config/systemd/user/do-backup.service | 6 ++++++ .config/systemd/user/do-backup.timer | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 .config/systemd/user/do-backup.service create mode 100644 .config/systemd/user/do-backup.timer (limited to '.config') diff --git a/.config/systemd/user/do-backup.service b/.config/systemd/user/do-backup.service new file mode 100644 index 0000000..6559f30 --- /dev/null +++ b/.config/systemd/user/do-backup.service @@ -0,0 +1,6 @@ +[Unit] +Description=Create a backup for the month + +[Service] +Type=oneshot +ExecStart=/bin/bash /home/mssola/bin/do-backup.sh \ No newline at end of file diff --git a/.config/systemd/user/do-backup.timer b/.config/systemd/user/do-backup.timer new file mode 100644 index 0000000..2bd63e3 --- /dev/null +++ b/.config/systemd/user/do-backup.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Timer for my monthly backup + +[Timer] +OnCalendar=*-*-01 13:00:00 +Persistent=true + +[Install] +WantedBy=timers.target \ No newline at end of file -- cgit v1.2.3