I made a post in the rclone forums as well, and after some posts we found out I have an old version of rclone.
I installed using:
sudo apt-get install rclone
and got version 1.45 (Newest is 1.55.1)
tried to install it the correct way, using:
curl https://rclone.org/install.sh | sudo bash
osmc@osmc:~$ curl https://rclone.org/install.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4491 100 4491 0 0 11604 0 --:–:-- --:–:-- --:–:-- 11574
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15 100 15 0 0 56 0 --:–:-- --:–:-- --:–:-- 56
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12.6M 100 12.6M 0 0 14.1M 0 --:–:-- --:–:-- --:–:-- 14.1M
unzip: invalid option – ‘a’
BusyBox v1.30.1 (Debian 1:1.30.1-4) multi-call binary.
-l List contents (with -q for short form)
-n Never overwrite files (default: ask)
-o Overwrite
-j Do not restore paths
-p Print to stdout
-q Quiet
-x FILE Exclude FILEs
-d DIR Extract into DIR
osmc@osmc:~$ rclone version
rclone v1.45
I got some help at the rclone-forum, somebody posted their script, and I just tried to edit it so it would suit me.
I did sudo nano /lib/systemd/system/rclone.service
[Unit] Description=RClone Service Wants=network-online.target After=network-online.target
[Service] Type=notify Environment=RCLONE_CONFIG=/home/osmc/.config/rclone/rclone.conf KillMode=none RestartSec=5
*ExecStart=/usr/bin/rclone mount crypt:media /home/osmc/gsuite * # This is for allowing users other than the user running rclone access to the mount
*–allow-other * # Google Drive is a polling remote so this value can be set very high and any changes are detected via polling.
*–dir-cache-time 1000h * # To log to syslog as well
*–syslog * # I reduce the poll internval down to 15 seconds as this makes changes appear fast the API quotas per day are huge
*–poll-interval 15s * # This is setting the file permission on the mount to user and group have the same access and other can read
*–umask 002 * # Please set this to your own value below
*–user-agent randomappname102 * # This sets up the remote control daemon so you can issue rc commands locally
*–rc * # This is the default port it runs on
*–rc-addr :5572 * # no-auth is used as no one else uses my server and it is not a shared seedbox
*–rc-no-auth * # The local disk used for caching
*–cache-dir=/cache * # This is used for caching files to local disk for streaming
*–vfs-cache-mode full * # This limits the cache size to the value below
*–vfs-cache-max-size 750G * # This adds a little buffer for read ahead
*–vfs-read-ahead 256M * # This limits the age in the cache if the size is reached and it removes the oldest files first
*–vfs-cache-max-age 1000h * # This sets a per file bandwidth control and I limit this to a little bigger than my largest bitrate I’d want to play –bwlimit-file 16M ExecStop=/bin/fusermount -uz /home/osmc/gsuite ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true Restart=on-failure User=osmc Group=osmc
[Install] WantedBy=multi-user.target
Did
osmc@osmc:~$ sudo systemctl daemon-reload
osmc@osmc:~$ sudo systemctl enable rclone.service
osmc@osmc:~$ sudo systemctl start rclone.service
I got an error:
Job for rclone.service failed because the control process exited with error code.
See “systemctl status rclone.service” and “journalctl -xe” for details.