How to keep a permanent copy of all files from Onedrive remote?

What is the problem you are having with rclone?

I want RClone to mount an external OneDrive remote downloading all its files (~900GB) to my local disk on Linux. In case I loose my remote, I want it to be a backup copy.

I am new to RClone, after reading the OneDrive remote documentation, overview, FAQ and a bit of research in the Forum, I did not find a clear explanation of how to do that.

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

rclone version
rclone v1.59.1

  • os/version: debian 11.5 (64 bit)
  • os/kernel: 5.10.0-18-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.5
  • go/linking: static
  • go/tags: none

Are you on the latest version of rclone? No, there is a new patch version.

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 --vfs-cache-mode full mount "onedrive":  /hd/OneDrive

This makes be able to access the files but after I turn off the PC, my local /hd/OneDrive folder is empty. I want to have the local folder as a copy in case I loose my remote for some reason. Is it possible with RClone?

The rclone config contents with secrets removed.

[onedrive]
type = onedrive
token = {"access_token":"..."}
drive_id = someid
drive_type = personal

A log from the command with the -vv flag

Irrelevant.

You'd probably want to use rclone copy or sync.

rclone copy onedrive: /hd/OneDrive
or
rclone sync onedrive: /hd/OneDrive

Sync will mirror onedrive to the local destination and keep up with any deletes or changes.

Test each with --dry-run and see if that does what you want before.

rclone copy

rclone sync

Read up on the differences to see what makes the most sense for you.

A mount requires the remote to be there as it's just mounting the remote as local storage so if the remote goes away so does anything on the mount.

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