How sync only one directory rclone?

I want sync only one directory from my onedrive account, how is possible with rclone?

rclone version

  • rclone v1.51.0
  • os/arch: linux/amd64
  • go version: go1.13.7How sync only one directory rclone?

OS:

Ubuntu 18.04

Cloud storage system

OneDrive Business

hello and welcome to the forum,

when you have a question, you should use the question template,
you would be asked some questions, such as

What is the problem you are having with rclone?

What is your rclone version (output from rclone version)

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

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

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

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

rclone sync remote:/path/to/folder /path/to/local/folder

when testing you can add flag --dry-run
Do a trial run with no permanent changes. Use this to see what rclone would do without actually doing it. Useful when setting up the sync command which deletes files in the destination

1 Like

I found so many alternatives such as:

  • exclue
  • filtering
  • file filtering

But these options do not fit for my topic.

I read the documentation from rclone Onedrive and found just i wanted, the solution is change the path to folder root account like so: remote:directory/subdirectory

ex:

rclone --vfs-cache-mode writes mount onedrive:/folderA/folderB/ ~/onedrive

Read more: rclone OneDrive
Red for install and config: How To Mount OneDrive In Linux

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