Change remote path from root to a directory

What is the problem you are having with rclone?

I created a remote that points to the root of a personal OneDrive. I realized I'd better off have that remote point to a directory in OneDrive, not the root, so I can use RClone only with that directory and block OneDrive from trying to sync it.

I'm trying to figure out if I can re-point that remote to another directory in OneDrive, or if I need to setup one from scratch.

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

rclone v1.68.1
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.4317 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: cmount

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

OneDrive

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

rclone config edit
rclone config update

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[OneDrive_01]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

A log from the command that you were trying to run with the -vv flag

rclone config edit -vv
2024/10/23 20:11:27 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "config" "edit" "-vv"]
2024/10/23 20:11:27 DEBUG : Using config file from "C:\\xxxxx\\AppData\\Roaming\\rclone\\rclone.conf"
Current remotes:

Name                 Type
====                 ====
OneDrive_01    onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

welcome to the forum,

rclone ls OneDrive_01:directory
just change directory to the real name of the directory.

also, for convenience, create an alias remote, something like

[directory]
type = alias
remote = OneDrive_01:directory

and
rclone ls directory:

I kid you not: I read through the whole list of remote types, and I didn't see the "alias" one (or didn't realize what it was).

This solved the problem. Thanks a lot!

1 Like

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