onedrive-d-old icon indicating copy to clipboard operation
onedrive-d-old copied to clipboard

Syncing file white-list

Open sanegaming opened this issue 9 years ago • 8 comments

I have a ton of files on my onedrive account and I would like a feature that is a whitelist so it will only sync one specified folder. Is there a way to do this? If not could you please add it?

sanegaming avatar Apr 24 '15 04:04 sanegaming

I could see this feature being useful. There are cases where I have multiple accounts that might need to sync up different local directories. It would be nice to be able to set, at the very least, a REMOTE_ONEDRIVE_ROOT_PATH or something similar.

farvour avatar Apr 24 '15 17:04 farvour

The next experimental version (the one that will leverage new OneDrive API) should support multi accounts and selective syncing while keeping blacklist feature. (but I don't have enough free time for this project recently...)

Sent from my Windows Phone


From: Thomas Farvourmailto:[email protected] Sent: ‎4/‎24/‎2015 1:54 PM To: xybu/onedrive-dmailto:[email protected] Subject: Re: [onedrive-d] Syncing file white-list (#157)

I could see this feature being useful. There are cases where I have multiple accounts that might need to sync up different local directories. It would be nice to be able to set, at the very least, a REMOTE_ONEDRIVE_ROOT_PATH or something similar.


Reply to this email directly or view it on GitHub: https://github.com/xybu/onedrive-d/issues/157#issuecomment-96012371

xybu avatar Apr 24 '15 18:04 xybu

I would REALLY appreciate this feature. It's currently the only thing keeping me from using onedrive-d, and it's a shame because this is otherwise really promising. I don't have much time either, but if this feature wouldn't be implemented soon I could try helping develop it.

dasizeman avatar May 10 '15 17:05 dasizeman

Adding my :thumbsup: for this.

aaronsturm avatar May 12 '15 22:05 aaronsturm

A vote from me. support of multiple accounts and a whitelist feature are very appreciated!

pkirillov avatar May 26 '15 13:05 pkirillov

dasizeman: You could work with Symlinks. Create a folder where the Daemon is listening to and create a symlink of the desired folder you want to sync.

ghost avatar Jun 02 '15 17:06 ghost

ProfDrLuigi: The problem I'm having is not with choosing the local files I want to sync, but with which files stored on OneDrive I want the daemon to pull down. I have a lot of files on the cloud that I don't want pulled locally.

On another note, it seems it is possible to interface with OneDrive over WebDAV, and on Windows it's fairly easy to mount your OneDrive storage as a WebDAV drive. However, it does something non-standard with the initial authentication and throws a 302 redirect that davfs2 doesn't handle.

Some initial digging with curl seems to indicate that it redirects to another authentication page; but this may just be because I'm not sending a proper WebDAV request. I'm going to look into if I can figure out the handshake its trying to do and maybe try and fix this shortcoming in davfs2.

If anyone knows anything on the WebDAV front, let me know.

dasizeman avatar Jun 22 '15 17:06 dasizeman

@dasizeman, apologies if I'm misinterpreting your requirement, or you already thought of this and rejected it:

While there is no current option to whitelist, it is possible to black list and achieve the same outcome. Of course, if you frequently create new top level folders on onedrive, this approach may not be manageable. In my case, I rarely create new top level folders on onedrive. Due to this, I have blacklisted everything I don't want using ignorev2.ini

@sanegaming the way I understand your request, it seems you are asking for the same (or very similar) functionality that is requested in https://github.com/xybu/onedrive-d/issues/143. Did I understand you correctly?

@xybu I haven't attempted to test this, but is there any possibility the functionality @farvour requests could have a workaround of:

  • add a linux account for each Onedrive account that needs to be synced
  • run onedrive-d in each of those linux accounts, providing different credentials
  • symlink & chmod to each of those folders for easier access This clearly is at the high end of hackiness, but would perhaps deliver a workaround until this additional functionality can be built

ewann avatar Jul 22 '15 12:07 ewann