Skip to content

Instantly share code, notes, and snippets.

@vertig0ne
Last active February 26, 2018 20:35
Show Gist options
  • Save vertig0ne/a41d5396872ef1dbe66a9b0f6d38de3c to your computer and use it in GitHub Desktop.
Save vertig0ne/a41d5396872ef1dbe66a9b0f6d38de3c to your computer and use it in GitHub Desktop.
[Unit]
Description=Checks for and uploads files in the staging directory
Wants=minute-timer.timer
AssertPathIsMountPoint=/mnt/media
After=unionfs.service
[Service]
User=vertig0ne
Group=vertig0ne
Type=simple
ExecStart=/home/vertig0ne/.bin/rclone-upload.sh
# Please see @Ajki's scripts for rclone-upload.sh. It's his script, you should go to him for it.
[Install]
WantedBy=minute-timer.target
[Unit]
Description=Minute Timer
[Timer]
OnBootSec=5min
OnCalendar=*:0/1
Unit=minute-timer.target
[Install]
WantedBy=basic.target
[Unit]
Description=Minute Timer Target
StopWhenUnneeded=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment