Comments (4)
Thank you for your detailed answer. I have tested that and everything works well right now.😄
However, there are something I want to explain though.
I do see that "everything will be excluded", but what I have wrote was
/NovaNo1r
!/NovaNo1r/*
/NovaNo1r/Blog
Which, from now perspective, is kinda silly.
Thank you for your kind advice. I know that I should post on GitHub discussion seeking for the help of advanced usage. But what I was thinking is that this is a bug, because I clearly remember that I configured like this before, and they worked as expected when I was using VM. So I guess it could be a bug related to the distribution or file system (maybe I just accidentally configured correctly)
I will make a deeper investigation next time before I open a GitHub issue.
Thank you again for making this amazing project and for your detailed answer.
from onedrive.
@MuelNova
Firstly, this appears to be a very odd issue as this is explicitly tested in the ~150 use cases which are gone through when validating version releases, so I 100% suspect this has to do with how you are configuring your 'sync_list' file - thus this is not a bug - sorry.
A bug refers to technical issues like application crashes, memory leaks, or logical errors, warranting a GitHub issue for resolution. In contrast, difficulties with feature usage or integration challenges should prompt opening a GitHub discussion instead.
Please be mindful of this in the future.
As to your issue, from your config output, your 'sync_list' is the following:
Blog/
NovaNo1r/Blog/
/NovaNo1r/Blog/
I get what you are trying to achieve here - however you are not configuring your 'sync_list' correctly. The file excludes everything by default , however as you want to include specific directories, you will need specify to explicitly exclude the root directory, then include the sub directory:
# Include NovaNo1r/Blog
# Parent and all other children of parent will be skipped
/NovaNo1r/Blog/*
Now - if the above suggestion does not resolve your issue , this will not be fixed in v2.4.25 - sorry.
My advice is that you change to start using v2.5.0-rc1 - please read #2662 on how to obtain, build and start using the RC1 client version which has been totally re-written.
If you still encounter an issue with v2.5.0-rc1 then this will be looked at before v2.5.0 release is done.
Please read:
- https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#performing-a-selective-sync-via-sync_list-file
- #2661
- #2662
- https://github.com/abraunegg/onedrive/blob/onedrive-v2.5.0-release-candidate-1/docs/usage.md#performing-a-selective-synchronisation-via-sync_list-file
from onedrive.
@MuelNova
I have confirmed the behavior with v2.4.25 and v2.5.0-rc1 and the behavior is as expected when using:
# Include NovaNo1r/Blog
# Parent and all other children of parent will be skipped
/NovaNo1r/Blog/*
v2.4.25 handling
...
Processing 179 OneDrive items to ensure consistent local state due to sync_list being used
Skipping item - excluded by skip_dir config: random_25k_files
Performing a database consistency and integrity check on locally stored data ...
Uploading differences of ~/OneDrive
Processing .
The directory has not changed
Processing random_data_s130
The directory has not changed
Uploading new items of ~/OneDrive
Skipping item - excluded by sync_list config: ./α
Skipping item - excluded by sync_list config: ./เอกสาร
Skipping item - excluded by skip_dir config: ./random_25k_files
OneDrive Client requested to create remote path: ./NovaNo1r
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r
Successfully created the remote directory ./NovaNo1r on OneDrive
Skipping item - excluded by sync_list config: ./NovaNo1r/some_pdf.pdf
OneDrive Client requested to create remote path: ./NovaNo1r/Blog
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog
Successfully created the remote directory ./NovaNo1r/Blog on OneDrive
OneDrive Client requested to create remote path: ./NovaNo1r/Blog/random_files
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_files
Successfully created the remote directory ./NovaNo1r/Blog/random_files on OneDrive
OneDrive Client requested to create remote path: ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y
Successfully created the remote directory ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y on OneDrive
Uploading new file ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y/file0.data ...
Uploading 100% |oooooooooooooooooooooooooooooooooooooooo| DONE IN 00:00:03
done.
Remaining free space on OneDrive: 977826614671
...
v2.5.0 handling
...
Skipping item - excluded by sync_list config: random_25k_files/random_files/01cCMOsxq81xCMnrWzt1fDpNx0Ieoqt2/file107.data
Skipping item - excluded by sync_list config: random_25k_files/random_files/01cCMOsxq81xCMnrWzt1fDpNx0Ieoqt2/file171.data
Finished processing /delta JSON response from the OneDrive API
Processing 1 applicable changes and items received from Microsoft OneDrive
Processing OneDrive JSON item batch [1/1] to ensure consistent local state
Performing a database consistency and integrity check on locally stored data
Processing DB entries for this Drive ID: b!bO8V7s9SSk6r7mWHpIjURotN33W1W2tEv3OXV_oFIdQimEdOHR-1So7CqeT1MfHA
Processing: ~/OneDrive
The directory has not changed
Processing: random_data_s130
The directory has not changed
Scanning the local file system '~/OneDrive' for new data to upload
Skipping item - excluded by sync_list config: ./α
Skipping item - excluded by sync_list config: ./เอกสาร
Skipping item - excluded by skip_dir config: ./random_25k_files
OneDrive Client requested to create this directory online: ./NovaNo1r
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r
Successfully created the remote directory ./NovaNo1r on Microsoft OneDrive
Skipping item - excluded by sync_list config: ./NovaNo1r/some_pdf.pdf
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog
Successfully created the remote directory ./NovaNo1r/Blog on Microsoft OneDrive
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog/random_files
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_files
Successfully created the remote directory ./NovaNo1r/Blog/random_files on Microsoft OneDrive
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y
Successfully created the remote directory ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y on Microsoft OneDrive
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog/random_files/CZ9aZRM7U1j7pM21fH0MfP2gywlX7bqW
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_files/CZ9aZRM7U1j7pM21fH0MfP2gywlX7bqW
Successfully created the remote directory ./NovaNo1r/Blog/random_files/CZ9aZRM7U1j7pM21fH0MfP2gywlX7bqW on Microsoft OneDrive
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog/random_images
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_images
Successfully created the remote directory ./NovaNo1r/Blog/random_images on Microsoft OneDrive
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog/random_images/cAuQMfX7qsMIOmzyQYdELikZwsXeCYsL
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_images/cAuQMfX7qsMIOmzyQYdELikZwsXeCYsL
Successfully created the remote directory ./NovaNo1r/Blog/random_images/cAuQMfX7qsMIOmzyQYdELikZwsXeCYsL on Microsoft OneDrive
OneDrive Client requested to create this directory online: ./NovaNo1r/Blog/random_images/GqjZuo7UBB0qjYM2WUcZXOvToAhCQ29M
The requested directory to create was not found on OneDrive - creating remote directory: ./NovaNo1r/Blog/random_images/GqjZuo7UBB0qjYM2WUcZXOvToAhCQ29M
Successfully created the remote directory ./NovaNo1r/Blog/random_images/GqjZuo7UBB0qjYM2WUcZXOvToAhCQ29M on Microsoft OneDrive
Skipping item - excluded by sync_list config: ./NovaNo1r/other_stuffs
New items to upload to OneDrive: 20
Total New Data to Upload: 77 MB
Uploading: ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y/file0.data ... 0% | ETA --:--:--
Uploading: ./NovaNo1r/Blog/random_files/k4GptfTBE2z2meRFqjf54tnvSXcXe30Y/file1.data ... 0% | ETA --:--:--
...
I have also updated the v2.5.x documentation to ensure that this sort of configuration is clearer to understand.
As such, I am closing this issue as this is not a bug (as demonstrated) but is a client configuration issue and partly a documentation issue which has been fixed.
from onedrive.
This issue 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: Files modified on upload (doc/docx/xls/xlsx) with SharePoint Shared Libraries HOT 3
- Bug: Inconsistencies When Interrupted During Download Activity HOT 4
- Bug: Process: 374335 ExecStart=/usr/bin/onedrive --monitor (code=exited, status=1/FAILURE) HOT 2
- Bug: Issues with onedrive 2.5.0-rc1 HOT 28
- Bug: Spelling error in message in onedrive-2.5-rc HOT 2
- Bug: Segfault on Downloads HOT 11
- Bug: ERROR: An internal database error occurred: disk I/O error HOT 2
- Bug: Skipping item - invalid name (Microsoft Naming Convention) for aparently good folder names. HOT 3
- Bug: Older versions of onedrive pulled from Docker Hub HOT 2
- Feature Request: Docker Environment Variable for `--sync-shared-files` HOT 2
- Bug: dbus not found HOT 4
- Bug: Does not synchronize during "Performing a database consistency" HOT 4
- Feature Request: Consider adding support for the OAuth2 Device Authorization Flow HOT 3
- Feature Request: Can the printing time be added to the log? HOT 4
- Bug: Synced file is removed when updated on the remote while being processed by onedrive HOT 10
- Feature Request: Add file path to warnings HOT 3
- Feature Request: Multi-threadded synchronization HOT 2
- Feature Request: Add information about file creator/last editor as extended file attributes HOT 2
- Cannot find dependencies 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.