xybu / onedrive-d-old

Microsoft OneDrive client on Linux.
http://xybu.me/projects/onedrive-d/
GNU Lesser General Public License v3.0
820 stars 143 forks source link

Syncing file white-list #157

Open sanegaming opened 9 years ago

sanegaming commented 9 years ago

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?

farvour commented 9 years ago

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.

xybu commented 9 years ago

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:notifications@github.com Sent: ‎4/‎24/‎2015 1:54 PM To: xybu/onedrive-dmailto:onedrive-d@noreply.github.com 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

dasizeman commented 9 years ago

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.

aaronsturm commented 9 years ago

Adding my :thumbsup: for this.

pkirillov commented 9 years ago

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

ghost commented 9 years ago

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.

dasizeman commented 9 years ago

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.

ewann commented 9 years ago

@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: