Comments (8)
Same problem.
I've manually copy the config
file from ~\onedrive
to ~\.config\onedrive
(this is a default place) - now working well.
Problem is onedrive doesn't create the config
file in .config\onedrive\
after first start. May be bug?
from onedrive.
The config file for the application resides in ~/.config/onedrive/
as a file called config
This file does not get created by default, and should only be created if you want to change the 'default' operational parameters.
Please Note:
Proceed with caution here by changing the default sync dir from ~/OneDrive to ~/library
The issue here is around how the client was originally coded & how the relative paths are stored in the database. If the config file is missing, or you don't use the sync_dir parameter - what will happen is the client will 'think' that either all your data has been deleted - thus delete the content on OneDrive, or will start downloading all data from OneDrive into the default location.
Now - with this being said:
To make your own configuration file to override the defaults:
vi ~/.config/onedrive/config
File contents:
sync_dir="~/library"
This should get you going in terms of setting the configuration for different sync location - however in testing this - it appears that it is not working as it should be, so looks like this is a bug when using the config file for the sync_dir option & when passing in the --syncdir from the command line.
Thanks for bringing this to my attention.
from onedrive.
Can you please test the following:
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/55/head:pr55
git checkout pr55
make
make install
In testing here locally:
Loading config ...
Using Config Dir: /root/.config/onedrive
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /root/library
Initializing the Synchronization Engine ...
Account Type: business
Default Drive ID: <redacted>
Default Root ID: <redacted>
Remaining Free Space: 1099372677600
Fetching details for OneDrive Root
OneDrive Root exists in the database
Applying changes of Path ID: <redacted>
Uploading differences of .
Processing root
The directory has not changed
Processing asdf.txt
The file has not changed
Uploading new items of .
Applying changes of Path ID: <redacted>
from onedrive.
I'll try to test it.
About config - I think you need to write it in docs. Thank you.
from onedrive.
Updated the readme file to clarify usage, warning and provide examples.
from onedrive.
@karl-ruhigen, @yn-coder
Any update in testing the fix for resolution to your issue?
from onedrive.
Closing this issue as validated externally, code change synced to master.
from onedrive.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from onedrive.
Related Issues (20)
- Bug: I'm new to this. I can't install onedrive 2.4.25-1. HOT 6
- Feature Request: ability to disable notifications related to https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#notifications HOT 2
- Bug: cannot upload a big file: Connection reset by peer, errno 104 + Send failed since rewinding of the data stream failed on handle + IPv6 HOT 8
- Bug: HTTP request returned status code 416 HOT 5
- Feature Request: Allow synchronizing smallest files first.
- Bug: WARNING: Your onedrive client version is now obsolete and unsupported. Please upgrade your client version. HOT 2
- Bug: Finished sync with missing files HOT 4
- Bug: Client and systemd use different home directory for users with unusual $HOME HOT 2
- Feature Request: Notification icon HOT 6
- Feature Request: Ability to set --disable-download-validation from env var HOT 4
- Bug: Not all files being downloaded HOT 29
- Bug: all files are skipped even when sync_list is set to "*" when running in docker HOT 2
- Bug: Unable to fetch some archives during installation. HOT 3
- Easy Installer for OneDrive Sync HOT 2
- Feature Request: Command to list all files / folders in onedrive HOT 2
- Bug: onedrive : Depends: libphobos2-ldc-shared100 (>= 1:1.30.0) but it is not installable HOT 4
- Feature Request: Chunked/resumable downloads (use Range: byte... request header) HOT 1
- Add option to suppress progress bar (make it default if stdout not a terminal) HOT 4
- Bug: --display-sync-status does not work when OneNote sections (.one files) are in your OneDrive. HOT 6
- Feature Request: rename directories HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedrive.