Skip to content

Instantly share code, notes, and snippets.

View almsilva's full-sized avatar

Andre Silva almsilva

  • Ireland
View GitHub Profile
@almsilva
almsilva / onedrive.service
Created September 30, 2018 00:40
Systemd unit to start rclone during the system startup.
[Unit]
Description=Start/Stop OneDrive sync using RClone
Requires=systemd-networkd.service
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=<your user name>
Group=<your user group name>
@almsilva
almsilva / onedrive.sh
Last active December 1, 2019 21:30
Bash script to control (start, stop, status) rclone mouting Microsoft OneDrive as a daemon.
#!/bin/sh
# -------------------------------------------------------------------------------
# General Settings. It is safe enough to be changed as needed.
# -------------------------------------------------------------------------------
# RClone remote name.
remote=onedrive
# Absolute path to the folder to be used as mounting point.