SOLVED Using rclone via own script

Hazimil

Contributor
Joined
May 26, 2014
Messages
172
Hi

I plan to use rclone to backup my NAS to B2 (had enough of CrashPlan), and as I want to adjust some of the parameters of rclone I cannot use the GUI Cloud Sync Tasks. Therefore I am writing a script to run as a cron job.

I've noticed that even though I have setup B2 within Cloud Credentials, running rclone config from the CLI of the FreeNAS server I get:

Code:
# rclone config
2019/06/05 18:26:21 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> q


As I'm wary of making any changes within the FreeNAS base O/S, would it be recommended to create a simple Jail with mounts to run rclone from?

Just after peoples views/ideas on this.

Yours
Jonathan
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I'd just run it from the CLI--apparently the GUI-set tasks use a separate configuration file, in a different location from the default.
 

Hazimil

Contributor
Joined
May 26, 2014
Messages
172
@danb35 excellent thanks. That's what I was hoping.

Jonathan
 

Michael Wenyon

Dabbler
Joined
Jan 3, 2016
Messages
23
It would be great to have a resource note about this setup!
 

Hazimil

Contributor
Joined
May 26, 2014
Messages
172
@Michael Wenyon I have tested my script and it worked, and am now waiting for it to finish on my live data. Once done, and it works as expected, I do plan to put up a short resource on this.

Watch this space.

Jonathan
 

Paul W.

Cadet
Joined
Dec 1, 2015
Messages
9
Hi Jonathan - any updates on your rclone setup?

Edit: found it by looking in your sig...

Thanks!
 
Last edited:

Hazimil

Contributor
Joined
May 26, 2014
Messages
172
@Paul W. I hope you found it useful. Does the job for me.

Jonathan
 
Top