dolphin sync
This commit is contained in:
parent
76e8d28b43
commit
fb77c8e645
3 changed files with 22 additions and 1 deletions
7
systemd_things/dolphin-sync.service
Normal file
7
systemd_things/dolphin-sync.service
Normal file
|
|
@ -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
|
||||||
|
|
||||||
10
systemd_things/dolphin-sync.timer
Normal file
10
systemd_things/dolphin-sync.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run Dolphin sync every hour at :25
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*:25
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
|
|
||||||
|
|
@ -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 :
|
symlink thingies :
|
||||||
```bash
|
```bash
|
||||||
ln -s ~/dotefiles/systemd_things/eden-sync.service ~/.config/systemd/user/eden-sync.service
|
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/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 :
|
then :
|
||||||
|
|
@ -12,5 +14,7 @@ then :
|
||||||
```bash
|
```bash
|
||||||
systemctl --user daemon-reexec
|
systemctl --user daemon-reexec
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
systemctl --user enable --now eden-sync.timer
|
systemctl --user enable --now eden-sync.timer
|
||||||
|
systemctl --user enable --now dolphin-sync.timer
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue