From b3de32548904007f5230ebc49947c78a0e0667b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 20 Jun 2024 16:24:32 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(systemd):=20add=20new=20servic?= =?UTF-8?q?e=20to=20backup=20gamesaves=20using=20ludusavi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/systemd/user/backupGames.service | 10 ++++++++++ .config/systemd/user/backupGames.timer | 10 ++++++++++ .config/systemd/user/downloadPinterest.service | 1 - 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .config/systemd/user/backupGames.service create mode 100644 .config/systemd/user/backupGames.timer diff --git a/.config/systemd/user/backupGames.service b/.config/systemd/user/backupGames.service new file mode 100644 index 00000000..4e954043 --- /dev/null +++ b/.config/systemd/user/backupGames.service @@ -0,0 +1,10 @@ +[Unit] +Description=Backup Game Filesaves with Ludusavi +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/ludusavi backup --force --full-limit 3 + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/backupGames.timer b/.config/systemd/user/backupGames.timer new file mode 100644 index 00000000..45940339 --- /dev/null +++ b/.config/systemd/user/backupGames.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Backup Game Filesaves + +[Timer] +OnCalendar=Mon,Wed,Fri 19:00:00 +Persistent=true +Unit=backupGames.service + +[Install] +WantedBy=timers.target diff --git a/.config/systemd/user/downloadPinterest.service b/.config/systemd/user/downloadPinterest.service index f5c38ad0..93a4c59c 100644 --- a/.config/systemd/user/downloadPinterest.service +++ b/.config/systemd/user/downloadPinterest.service @@ -1,4 +1,3 @@ - [Unit] Description=Download Pinterest Boards After=network.target