Skip to content

Instantly share code, notes, and snippets.

@victor-oliveira1
Created December 27, 2022 20:24
Show Gist options
  • Save victor-oliveira1/e7658ae6bdb382d5657217992e2a9cd5 to your computer and use it in GitHub Desktop.
Save victor-oliveira1/e7658ae6bdb382d5657217992e2a9cd5 to your computer and use it in GitHub Desktop.
[Lakka][Retroarch] Savefile sync between devices
[Unit]
Description=Savesync Path Watcher
BindsTo=storage-roms-smb.mount
[Path]
PathChanged=/storage/savefiles/
[Install]
WantedBy=storage-roms-smb.mount
[Unit]
Description=Savesync Service
BindsTo=storage-roms-smb.mount
[Service]
Type=oneshot
ExecStart=-/usr/bin/rsync -quav /storage/roms/smb/savefiles/ /storage/savefiles/
ExecStart=-/usr/bin/rsync -quav /storage/savefiles/ /storage/roms/smb/savefiles/
[Install]
WantedBy=storage-roms-smb.mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment