One way upload to specific remote OneDrive folder (not home) #3560
-
|
Hi everyone. I have installed OneDrive Client for Linux on my RPi and successfully have it uploading-only to my OneDrive Home. I have 4 RPI's and my aim is to back each of them up to OneDrive (upload only) to specific OneDrive folders. So in this case I want OneDrive Client to upload a number of folders on the RPi to my remote cloud OneDrive folder called "OneDrive/System Library/RPI Backups/DevTest". The problem I am experiencing is that the RPi end seems to work fine, but it always syncs to the Home of the remote cloud OneDrive. I haven't been able to find a working way of uploading to (in this case) "OneDrive/System Library/RPI Backups/DevTest-31" in the OneDrive cloud. My understanding is that using "--single-directory "System Library/RPi Backups/DevTest-31"" will achieve what I want, but My current setup is as follows. I have created a sync_list file and changed the config parameters as follows: Note the sync_dir is set to "/", being the root of the RPi. I'm relying on sync_list to select the actual folders to upload. The sync_list file has entries such as: It looks like the path has been changed to replace the slashes with dots. Appreciate any advice to get this working. Here is an example of a sync output: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
For awareness, this question comes up from time to time and has been covered in previous discussions. It’s also documented here: My understanding of your requirement(s)
and have that data in the
Notes
Your Configuration
If you are adding other data .. then this is where 'sync_list' is helpful to guard what is uploaded. If this system / path is the only thing being uploaded from this device, then a 'sync_list' file is not needed. Your resulting configuration: When you do this - your MQTT data will be uploaded to the location you have specific online. This is the only way this works. |
Beta Was this translation helpful? Give feedback.
-
To clarify this understanding:
Now .. this is an odd one ... the |
Beta Was this translation helpful? Give feedback.
-
What will be occurring is that your configured 'sync_dir' sees a OneDrive folder .. and that is what is being uploaded .. so essentially one of your symbolic links is pointing at an incorrect point for your data. In your configured 'sync_dir' .. what you want to do is change to that directory, then:
Do you see the expected files / structure that you want replicated? Essentially all you have to do is fix the symbolic links, then the correct structure will be replicated to the location you are wanting online. |
Beta Was this translation helpful? Give feedback.



@VidarParry
For awareness, this question comes up from time to time and has been covered in previous discussions. It’s also documented here:
https://github.com/abraunegg/onedrive/blob/master/docs/advanced-usage.md#upload-data-from-the-local-onedrive-folder-to-a-specific-location-on-onedrive
My understanding of your requirement(s)
OneDrive/System Library/RPI Backups/DevTest-31as illustrated below: