[systemd] Add retroarch webdav playlog sync
This commit is contained in:
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Watch RetroArch playlogs for changes
|
||||||
|
|
||||||
|
[Path]
|
||||||
|
PathModified=%h/var/retroarch/playlogs/
|
||||||
|
Unit=retroarch-playlogs-sync.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Sync RetroArch playlogs to WebDAV
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=rclone copy %h/var/retroarch/playlogs/ retroarch-dav:/playlogs/ --retries 3 --verbose
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Periodic RetroArch playlogs sync (fallback)
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*:0/30
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user