From 316be047129407adcfa2180028f4bf9d143bce56 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 4 May 2024 20:35:06 -0500 Subject: [PATCH] Add flatpak dump timer --- base/.config/systemd/user/flatpak-dump.service | 9 +++++++++ base/.config/systemd/user/flatpak-dump.timer | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 base/.config/systemd/user/flatpak-dump.service create mode 100644 base/.config/systemd/user/flatpak-dump.timer diff --git a/base/.config/systemd/user/flatpak-dump.service b/base/.config/systemd/user/flatpak-dump.service new file mode 100644 index 00000000..578d2b66 --- /dev/null +++ b/base/.config/systemd/user/flatpak-dump.service @@ -0,0 +1,9 @@ +# vim:ft=systemd: +[Unit] +Description=Flatpak manifest backup service + +[Service] +ExecStart=bash -c 'flatpak list --columns=application --app > $HOME/.backup/flatpak-latest.txt' + +[Install] +WantedBy=default.target diff --git a/base/.config/systemd/user/flatpak-dump.timer b/base/.config/systemd/user/flatpak-dump.timer new file mode 100644 index 00000000..93bc1fcd --- /dev/null +++ b/base/.config/systemd/user/flatpak-dump.timer @@ -0,0 +1,10 @@ +# vim:ft=systemd: +[Unit] +Description=Flatpak manifest backup timer + +[Timer] +Persistent=true +OnCalendar=*:0/15 + +[Install] +WantedBy=default.target