xybu / onedrive-d-old

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

[not a issue but] Choose what folders to sync #211

Open mmanueljoao opened 7 years ago

mmanueljoao commented 7 years ago

I do think this is to be done in the last topic of onedrive-pref but can someone explain me how to do it ?

skjongithub commented 7 years ago

I'd like to know, too. Does anyone have solution?

ghost commented 7 years ago

not sure how to select folders to download, but you can set an ignore list during setup in onedrive-pref

brendjuan commented 7 years ago

You can choose what folders to ignore... and if you choose all but the folders you wish to sync, then thats one solution.

For me, I have Documents, Music, Backups, and Pictures in the root of my Onedrive . I only really want Music and Documents to be synced soo... in my /home/{user}/.onedrive/ignore_v2.ini it looks something like this:

Pictures/ Backups/ Some/Other/FolderIWantToIgnore/

onedrive-d will still create Pictures and Backups folders on your local machine but it won't populate the folders. (hopefully you may have already figured this out, but if not, there it is. I used a normal text editor like emacs, vim, or gedit to edit the .ini file)

In addition, I had some files not actually syncing so... I then have been running "onedrive-d start --debug" and monitoring the output. For some odd reason some files just don't want to sync. They usually blast out some slew of python errors and then repeatedly output "DEBUG: MainThread: added task "sy" "/home/{user}/OneDrive"". At that point I stop it, scroll up a bit to see what the last file is and usually append that to ignore_v2.ini . An example: "Documents/Site1/" was full of files that didnt want to sync so I appened "Documents/Site1/{filename}" with whatever filename was not playing nice. This is only a way I found of dealing with the problem not actually fixing it.

Hopefully this helps, onedrive-d is a kinda buggy, and not well documented, but its nice once things are actually working properly.

skjongithub commented 7 years ago

thank you

bearnie commented 7 years ago

Thanks Brendjuan, I'm going to try this out and will post my feedback here...