From fb77c8e645cd9573ebc0bab6fb9a2d732e18508d Mon Sep 17 00:00:00 2001 From: Crizomb Date: Mon, 26 Jan 2026 04:22:13 +0100 Subject: [PATCH] dolphin sync --- systemd_things/dolphin-sync.service | 7 +++++++ systemd_things/dolphin-sync.timer | 10 ++++++++++ systemd_things/readme.md | 6 +++++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 systemd_things/dolphin-sync.service create mode 100644 systemd_things/dolphin-sync.timer diff --git a/systemd_things/dolphin-sync.service b/systemd_things/dolphin-sync.service new file mode 100644 index 0000000..341b0a0 --- /dev/null +++ b/systemd_things/dolphin-sync.service @@ -0,0 +1,7 @@ +[Unit] +Description=Sync Dolphin folder + +[Service] +Type=oneshot +ExecStart=/usr/bin/rsync -av /var/home/clement/.var/app/org.DolphinEmu.dolphin-emu/data/dolphin-emu/ /var/home/clement/Nextcloud/GamesThingsSynced/DolphinThings/dolphin-emu + diff --git a/systemd_things/dolphin-sync.timer b/systemd_things/dolphin-sync.timer new file mode 100644 index 0000000..133f76f --- /dev/null +++ b/systemd_things/dolphin-sync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run Dolphin sync every hour at :25 + +[Timer] +OnCalendar=*:25 +Persistent=true + +[Install] +WantedBy=timers.target + diff --git a/systemd_things/readme.md b/systemd_things/readme.md index 8ad9b57..8f6f211 100644 --- a/systemd_things/readme.md +++ b/systemd_things/readme.md @@ -1,10 +1,12 @@ -No crontab by default on bluefin atomic distro +No crontab by default on bluefin atomic distro. I do crontab thingies here with systemd. symlink thingies : ```bash ln -s ~/dotefiles/systemd_things/eden-sync.service ~/.config/systemd/user/eden-sync.service ln -s ~/dotefiles/systemd_things/eden-sync.timer ~/.config/systemd/user/eden-sync.timer +ln -s ~/dotefiles/systemd_things/dolphin-sync.service ~/.config/systemd/user/dolphin-sync.service +ln -s ~/dotefiles/systemd_things/dolphin-sync.timer ~/.config/systemd/user/dolphin-sync.timer ``` then : @@ -12,5 +14,7 @@ then : ```bash systemctl --user daemon-reexec systemctl --user daemon-reload + systemctl --user enable --now eden-sync.timer +systemctl --user enable --now dolphin-sync.timer ```