Skip to content

Instantly share code, notes, and snippets.

@MorphyDK
Created May 22, 2021 18:51
Show Gist options
  • Save MorphyDK/2b454b37407aa414151ef2cd12dacc1d to your computer and use it in GitHub Desktop.
Save MorphyDK/2b454b37407aa414151ef2cd12dacc1d to your computer and use it in GitHub Desktop.
Rclonemount with vfs-cache-mode full active
[Unit]
Description=RClone Service
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/plex/.config/rclone/rclone.conf
ExecStart=/usr/bin/rclone mount Googlecrypt: /home/plex/mnt \
--allow-other \
--dir-cache-time 1000h \
--log-level INFO \
--log-file /home/plex/logs/rclone.log \
--poll-interval 15s \
--umask 002 \
--cache-dir=/home/plex/cache \
--vfs-cache-mode full \
--vfs-cache-max-size 800G \
--vfs-cache-max-age 120h \
--bwlimit-file 32M
ExecStop=/bin/fusermount -uz /home/plex/mnt
Restart=on-abort
User=plex
Group=plex
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment