systemd services + timers, eden sync
This commit is contained in:
parent
69909d7d55
commit
80c60b63a8
5 changed files with 37 additions and 4 deletions
4
.zshrc
4
.zshrc
|
|
@ -17,6 +17,6 @@ source "$HOME/.cargo/env"
|
|||
|
||||
alias :q=exit
|
||||
alias cl=clear
|
||||
alias rm=rm -i
|
||||
alias shut=shutdown 0
|
||||
alias rm="rm -i"
|
||||
alias shut="shutdown 0"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Yes it's written dotefiles. Legacy code mistake. But I dote on my dot files. So it's ok
|
||||
|
||||
|
||||
Folder where I store all my useful dotfiles. I then do symlink to link those dotefiles to their "default" location.
|
||||
Not longer just dotfiles, but just more "everything custom handmade on my system so I can easily replicate and not lose track of it"
|
||||
|
||||
|
|
|
|||
7
systemd_things/eden-sync.service
Normal file
7
systemd_things/eden-sync.service
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=Sync Eden folder
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/rsync -av --delete /var/home/clement/.local/share/eden/ /var/home/clement/Nextcloud/GamesThingsSynced/SwitchThings
|
||||
|
||||
10
systemd_things/eden-sync.timer
Normal file
10
systemd_things/eden-sync.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Run Eden sync every hour at :25
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:25
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
||||
16
systemd_things/readme.md
Normal file
16
systemd_things/readme.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
No crontab by default on bluefin atomic distro
|
||||
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
then :
|
||||
|
||||
```bash
|
||||
systemctl --user daemon-reexec
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now eden-sync.timer
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue