Moveto, how to tell where the config file is?

What is the problem you are having with rclone?

Hi,
I want to move my files from my local drive to the cloud drive, which will work with the commandline I tried to run.
The problem is, that I moved my config file (security reasons) and need to tell rclone where the new config file is located.

For my mount script I just added the path to the mound command (below) but I am not sure how to add it to the moveto command.

rcloneorig config --config=/mnt/disk1/rclone/rclone.conf

It is probably simple, but unfortunately I can not figure it out.

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.2

  • os/version: slackware 15.0+ (64 bit)
  • os/kernel: 5.19.9-Unraid (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.6
  • go/linking: static
  • go/tags: none

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

google drive

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

rclone -P moveto --bwlimit "00:30,off 07:00,1M" --ignore-existing /mnt/user/dl/media gcrypt:/media

The rclone config contents with secrets removed.

[gsuite]
type = drive
client_id = ###
client_secret = ###
scope = drive
team_drive =
token = ###

[gcrypt]
type = crypt
remote = gsuite:/crypt
filename_encryption = off
directory_name_encryption = false
password = ###
password2 = ###

Thanks.

Just add that to your command

1 Like

Well, I have tried, but get this answer:

rcloneorig -P moveto --bwlimit "00:30,off 07:00,1M" --ignore-existing /mnt/user/dl/downloads/crypt/media/ grcypt:/media --config=/mnt/disk1/rclone/rclone.conf

Failed to create file system for destination "grcypt:/media": didn't find section in config file

If you cat the file at that location, can you share the output with keys and sic redacted?

1 Like

Can you be more specific about what you want me to do?

If I enter "cat" and then the path of the config file, only the contents of the config are displayed (as in the initial post).

Type in

cat /mnt/disk1/rclone/rclone.conf

Paste in the details and remove any keys or secrets.

1 Like
cat /mnt/disk1/rclone/rclone.conf
[gsuite]
type = drive
client_id = ###
client_secret = ###
scope = drive
team_drive = 
token = ###

[gcrypt]
type = crypt
remote = gsuite:/crypt/media
filename_encryption = off
directory_name_encryption = false
password = ###
password2 = ###

Now run:

rclone -P moveto --bwlimit "00:30,off 07:00,1M" --ignore-existing /mnt/user/dl/downloads/crypt/media/ grcypt:/media --config=/mnt/disk1/rclone/rclone.conf -vv

Share the full output.

1 Like
rclone -P moveto --bwlimit "00:30,off 07:00,1M" --ignore-existing /mnt/user/dl/downloads/crypt/media/ grcypt:/media --config=/mnt/disk1/rclone/rclone.conf -vv
# : Starting bandwidth limiter at 1Mi Byte/s
# : rclone: Version "v1.59.2" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "-P" "moveto" "--bwlimit" "00:30,off 07:00,1M" "--ignore-existing" "/mnt/user/dl/downloads/crypt/media/" "grcypt:/media" "--config=/mnt/disk1/rclone/rclone.conf" "-vv"]
# : Creating backend with remote "/mnt/user/dl/downloads/crypt/media/"
# : Using config file from "/mnt/disk1/rclone/rclone.conf"
# : Creating backend with remote "grcypt:/media"
# Failed to create file system for destination "grcypt:/media": didn't find section in config file

Are you running a script / some other binary? You've got the config listed twice in your log there and it's taking the first one.

Is that some unraid configuration ?

1 Like

hi,

i think that should be gcrypt

i am happy i found that, as i am still on my first morning coffee :wink:

1 Like

I'm getting there as the first problem is the double config files which we haven't solved yet.

1 Like

Yes, I run this "rclone_mount" script on unraid, where I added the config path:

It seems like running after some changes:

rclone -P moveto --bwlimit "00:30,off 07:00,1M" --ignore-existing /mnt/user/dl/downloads/crypt/media/ gcrypt:/media/ --config=/mnt/disk1/rclone/rclone.conf

@Animosity022 Is there any problem with the other config path? I checked and it is empty.

@asdffdsa It look like I have to start with coffee :smiley:

Thank you both.

Based on this statement:

You have your config located here

and you moved something to the new location you've specified

You'd want to fix the script so it properly points to the location you'd want to and ensure the old file doesn't have anything you'd not want in there as you had a security concern about the original location.

1 Like

I need to check this whit the script programmer.

The security reason is with unraid, since rclone store the origin config file at "/boot/[...]" which can be accessed before encrypting the array (local drive).

But I run the following commands and it not found any other rclone.conf, so I hope I will be fine:

find / -type f -name .rclone.conf
find / -type f -name rclone.conf

As mentioned above, the /boot/ config is found but empty.

yeah, lol, next time tho, i will wait till i finish the first coffee,
as by then @Animosity022 would have solved all the problems.

1 Like

We keep you around for any S3 stuff :slight_smile:

1 Like

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