Cant get the drive to mount on boot

What is the problem you are having with rclone?

Cant get the drive to mount on boot.
I am using a script, set to run on reboot via CRON to mount a dropbox folder. The script works when run from the CLI, but not from CRON.

What is your rclone version (output from rclone version)

rclone v1.55.1

  • os/type: linux
  • os/arch: arm64
  • go/version: go1.16.3
  • go/linking: static
  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Raspberry Pi OS 64 bit Buster

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Script is below:

#!/bin/bash
/usr/bin/rclone mount --allow-non-empty --allow-other Dropbox:House/Sandhill/House/Raspberry/Backup /home/pi/Dropbox &

I have made it executable; then added it to cron:

crontab -e
@reboot sh /root/myscript.sh

The rclone config contents with secrets removed.

[Dropbox]
type = dropbox
token = {"access_token":"XXX","token_type":"bearer","expiry":"YYY"}

A log from the command with the -vv flag

No logs found

hello and welcome to the forum,

does the script run and fail?
or
does not run at all?

unless you are 1000% sure, should remove --allow-non-empty

there are a number of post about rclon in the forum, did they not solve the problem?
What am I missing in Crontab executing the .cron files?
Rclone works but not from cron (raspberry pi)
Issue with rclone running from cron

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.