Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support wildcard within sync_list entries #1063

Merged
merged 3 commits into from
Sep 16, 2020

Conversation

abraunegg
Copy link
Owner

  • Support wildcard within sync_list entries

* Support wildcard within sync_list entries
@abraunegg
Copy link
Owner Author

Config:

./onedrive --confdir '~/.config/onedrive-personal/' --display-config
Configuration file successfully loaded
onedrive version                       = v2.4.5-12-g0c770ef
Config path                            = /home/alex/.config/onedrive-personal/
Config file found in config path       = true
Config option 'check_nosync'           = false
Config option 'sync_dir'               = /home/alex/OneDrivePersonal
Config option 'skip_dir'               = 
Config option 'skip_file'              = ~*|.~*|*.tmp|*.swp
Config option 'skip_dotfiles'          = false
Config option 'skip_symlinks'          = false
Config option 'monitor_interval'       = 30
Config option 'min_notify_changes'     = 5
Config option 'log_dir'                = /var/log/onedrive/
Config option 'classify_as_big_delete' = 1000
Config option 'sync_root_files'        = false
Selective sync 'sync_list' configured  = true
sync_list contents:
# Include all files and folders under /random_files/
random_files/temp*
# Include all files and folders under /random_images/
random_images/
Business Shared Folders configured     = false

Folder composition:

.
├── Documents
│   ├── Images
│   └── Music
├── Dropbox
├── Images
├── Music
├── random_files -> /home/alex/OneDrive/random_files
│   ├── blah
│   │   └── Ge2YFs6HDUsEmwpbA8b80RsV8APZZk6l
│   ├── temp
│   ├── temp1
│   │   └── 3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY
│   └── temp2
│       ├── 9kkDiggwzfimGzIC3zEMHCEIQZz43E0l
│       └── EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo
├── random_images -> /home/alex/OneDrive/random_images
│   ├── 5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN
│   ├── eyy9NflXfPMxleNYnN4DTanVm3WV6m3p
│   ├── TCdX2javImiZnd5A3FyaqOrkXoIOI9if
│   └── UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3
└── random_videos -> /home/alex/OneDrive/random_videos
    ├── hM0IGhCMbrhDKTUqjxBCi0ryAmECjMNI
    └── y7Q5Qw7RHQU1VbOq0pCZIPZwv8GRaAjj

23 directories

Expectation is that random_files/temp* is included

Without PR:

./onedrive --confdir '~/.config/onedrive-personal/' --synchronize --verbose --resync
Using 'user' Config Dir: /home/alex/.config/onedrive-personal/
Using 'system' Config Dir: 
Configuration file successfully loaded
Deleting the saved status ...
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Opening the item database ...
All operations will be performed in: /home/alex/OneDrivePersonal
Application version: v2.4.5-12-g0c770ef
Account Type: personal
Default Drive ID: 66d53be8a5056eca
Default Root ID: 66D53BE8A5056ECA!101
Remaining Free Space: 5334903675
Fetching details for OneDrive Root
OneDrive Root does not exist in the database. We need to add it.
Added OneDrive Root to the local database
Initializing the Synchronization Engine ...
Syncing changes from OneDrive ...
Applying changes of Path ID: 66D53BE8A5056ECA!101
Updated Remaining Free Space: 5334903675
Processing 123 OneDrive items to ensure consistent local state due to sync_list being used
Skipping item - excluded by sync_list config: Documents
Skipping item - excluded by sync_list config: random_videos
Skipping item - excluded by sync_list config: Dropbox
Skipping item - excluded by sync_list config: Images
Skipping item - excluded by sync_list config: Music
Skipping item - excluded by sync_list config: file1.txt
Skipping item - excluded by sync_list config: random_files/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo
Skipping item - excluded by sync_list config: random_files/Ge2YFs6HDUsEmwpbA8b80RsV8APZZk6l
Skipping item - excluded by sync_list config: random_files/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l
Skipping item - excluded by sync_list config: random_files/temp1
Skipping item - excluded by sync_list config: random_files/temp2
Skipping item - excluded by sync_list config: random_files/temp/file0.data
Skipping item - excluded by sync_list config: random_files/temp/file1.data
Skipping item - excluded by sync_list config: random_files/temp/file2.data
Skipping item - excluded by sync_list config: random_files/temp/file3.data
Skipping item - excluded by sync_list config: random_files/temp/file4.data
Skipping item - excluded by sync_list config: random_files/temp/file5.data
Skipping item - excluded by sync_list config: random_files/temp/file6.data
Skipping item - excluded by sync_list config: random_files/temp/file7.data
Skipping item - excluded by sync_list config: random_files/temp/file8.data
Skipping item - excluded by sync_list config: random_files/temp/file9.data
Number of items from OneDrive to process: 1
Uploading differences of ~/OneDrivePersonal
Processing .
The directory has not changed
Processing random_images
The directory has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p
The directory has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image0.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image1.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image2.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image3.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image5.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image4.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image8.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image9.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image6.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image7.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3
The directory has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image0.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image1.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image2.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image4.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image6.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image3.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image8.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image5.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image9.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image7.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN
The directory has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image0.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image2.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image1.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image3.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image6.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image7.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image8.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image5.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image4.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image9.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if
The directory has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image1.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image3.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image5.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image4.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image7.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image9.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image2.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image6.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image0.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image8.png
The file has not changed
Processing random_files
The directory has not changed
Processing random_files/temp
The directory has not changed
Uploading new items of ~/OneDrivePersonal
Skipping item - excluded by sync_list config: ./random_files/temp1
Skipping item - excluded by sync_list config: ./random_files/temp2
Skipping item - excluded by sync_list config: ./random_files/blah
Skipping item - excluded by sync_list config: ./random_files/temp/file0.data
Skipping item - excluded by sync_list config: ./random_files/temp/file1.data
Skipping item - excluded by sync_list config: ./random_files/temp/file2.data
Skipping item - excluded by sync_list config: ./random_files/temp/file3.data
Skipping item - excluded by sync_list config: ./random_files/temp/file4.data
Skipping item - excluded by sync_list config: ./random_files/temp/file5.data
Skipping item - excluded by sync_list config: ./random_files/temp/file6.data
Skipping item - excluded by sync_list config: ./random_files/temp/file7.data
Skipping item - excluded by sync_list config: ./random_files/temp/file8.data
Skipping item - excluded by sync_list config: ./random_files/temp/file9.data
Skipping item - excluded by sync_list config: ./random_videos
Skipping item - excluded by sync_list config: ./Dropbox
Skipping item - excluded by sync_list config: ./Documents
Skipping item - excluded by sync_list config: ./Images
Skipping item - excluded by sync_list config: ./Music
Skipping item - excluded by skip_file config: ./file1.tmp
Skipping item - excluded by sync_list config: ./file1.txt
Applying changes of Path ID: 66D53BE8A5056ECA!101
Updated Remaining Free Space: 5334903675
Processing 1 OneDrive items to ensure consistent local state due to a full scan being requested

Result is that random_files/temp* is excluded

With PR:

./onedrive --confdir '~/.config/onedrive-personal/' --synchronize --verbose --resync
Using 'user' Config Dir: /home/alex/.config/onedrive-personal/
Using 'system' Config Dir: 
Configuration file successfully loaded
Deleting the saved status ...
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Opening the item database ...
All operations will be performed in: /home/alex/OneDrivePersonal
Application version: v2.4.5-12-g0c770ef
Account Type: personal
Default Drive ID: 66d53be8a5056eca
Default Root ID: 66D53BE8A5056ECA!101
Remaining Free Space: 5334903675
Fetching details for OneDrive Root
OneDrive Root does not exist in the database. We need to add it.
Added OneDrive Root to the local database
Initializing the Synchronization Engine ...
Syncing changes from OneDrive ...
Applying changes of Path ID: 66D53BE8A5056ECA!101
Updated Remaining Free Space: 5334903675
Processing 123 OneDrive items to ensure consistent local state due to sync_list being used
Skipping item - excluded by sync_list config: Documents
Skipping item - excluded by sync_list config: random_videos
Skipping item - excluded by sync_list config: Dropbox
Skipping item - excluded by sync_list config: Images
Skipping item - excluded by sync_list config: Music
Skipping item - excluded by sync_list config: file1.txt
Skipping item - excluded by sync_list config: random_files/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo
Skipping item - excluded by sync_list config: random_files/Ge2YFs6HDUsEmwpbA8b80RsV8APZZk6l
Skipping item - excluded by sync_list config: random_files/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l
Number of items from OneDrive to process: 1
Uploading differences of ~/OneDrivePersonal
Processing .
The directory has not changed
Processing random_images
The directory has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p
The directory has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image0.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image1.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image2.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image3.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image5.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image4.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image8.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image9.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image6.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image7.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3
The directory has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image0.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image1.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image2.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image4.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image6.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image3.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image8.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image5.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image9.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image7.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN
The directory has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image0.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image2.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image1.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image3.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image6.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image7.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image8.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image5.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image4.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image9.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if
The directory has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image1.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image3.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image5.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image4.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image7.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image9.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image2.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image6.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image0.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image8.png
The file has not changed
Processing random_files
The directory has not changed
Processing random_files/temp
The directory has not changed
Processing random_files/temp/file0.data
The file has not changed
Processing random_files/temp/file1.data
The file has not changed
Processing random_files/temp/file2.data
The file has not changed
Processing random_files/temp/file3.data
The file has not changed
Processing random_files/temp/file4.data
The file has not changed
Processing random_files/temp/file5.data
The file has not changed
Processing random_files/temp/file6.data
The file has not changed
Processing random_files/temp/file7.data
The file has not changed
Processing random_files/temp/file8.data
The file has not changed
Processing random_files/temp/file9.data
The file has not changed
Processing random_files/temp1
The directory has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY
The directory has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file0.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file1.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file2.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file3.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file4.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file5.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file6.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file7.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file8.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file9.data
The file has not changed
Processing random_files/temp2
The directory has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l
The directory has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file0.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file1.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file2.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file3.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file4.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file5.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file6.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file7.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file8.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file9.data
The file has not changed
Processing random_files/temp2/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo
The directory has not changed
Processing random_files/temp2/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo/file4.data
The file has not changed
Uploading new items of ~/OneDrivePersonal
Skipping item - excluded by sync_list config: ./random_files/blah
Skipping item - excluded by sync_list config: ./random_videos
Skipping item - excluded by sync_list config: ./Dropbox
Skipping item - excluded by sync_list config: ./Documents
Skipping item - excluded by sync_list config: ./Images
Skipping item - excluded by sync_list config: ./Music
Skipping item - excluded by skip_file config: ./file1.tmp
Skipping item - excluded by sync_list config: ./file1.txt
Applying changes of Path ID: 66D53BE8A5056ECA!101
Updated Remaining Free Space: 5334903675
Processing 1 OneDrive items to ensure consistent local state due to a full scan being requested

Result is that random_files/temp* is included

@abraunegg abraunegg added this to the v2.4.6 milestone Sep 15, 2020
@abraunegg abraunegg requested a review from norbusan September 15, 2020 06:29
src/selective.d Outdated Show resolved Hide resolved
norbusan
norbusan previously approved these changes Sep 15, 2020
Copy link
Collaborator

@norbusan norbusan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as this is fine as is, but see my comment.

* Update wildcard to support pattern matching anywhere in allowed path
@abraunegg
Copy link
Owner Author

Updated PR.

Config:

Configuration file successfully loaded
onedrive version                       = v2.4.5-12-g0c770ef
Config path                            = /home/alex/.config/onedrive-personal/
Config file found in config path       = true
Config option 'check_nosync'           = false
Config option 'sync_dir'               = /home/alex/OneDrivePersonal
Config option 'skip_dir'               = 
Config option 'skip_file'              = ~*|.~*|*.tmp|*.swp
Config option 'skip_dotfiles'          = false
Config option 'skip_symlinks'          = false
Config option 'monitor_interval'       = 30
Config option 'min_notify_changes'     = 5
Config option 'log_dir'                = /var/log/onedrive/
Config option 'classify_as_big_delete' = 1000
Config option 'sync_root_files'        = false
Selective sync 'sync_list' configured  = true
sync_list contents:
# Include all files and folders under /random_files/
random_files/temp*
# Include all files and folders under /random_images/
random_ima*es/
Business Shared Folders configured     = false

Result:

./onedrive --confdir '~/.config/onedrive-personal/' --synchronize --resync --verbose
Using 'user' Config Dir: /home/alex/.config/onedrive-personal/
Using 'system' Config Dir: 
Configuration file successfully loaded
Deleting the saved status ...
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Opening the item database ...
All operations will be performed in: /home/alex/OneDrivePersonal
Application version: v2.4.5-12-g0c770ef
Account Type: personal
Default Drive ID: 66d53be8a5056eca
Default Root ID: 66D53BE8A5056ECA!101
Remaining Free Space: 5334903675
Fetching details for OneDrive Root
OneDrive Root does not exist in the database. We need to add it.
Added OneDrive Root to the local database
Initializing the Synchronization Engine ...
Syncing changes from OneDrive ...
Applying changes of Path ID: 66D53BE8A5056ECA!101
Updated Remaining Free Space: 5334903675
Processing 123 OneDrive items to ensure consistent local state due to sync_list being used
Skipping item - excluded by sync_list config: Documents
Skipping item - excluded by sync_list config: random_videos
Skipping item - excluded by sync_list config: Dropbox
Skipping item - excluded by sync_list config: Images
Skipping item - excluded by sync_list config: Music
Skipping item - excluded by sync_list config: file1.txt
Skipping item - excluded by sync_list config: random_files/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo
Skipping item - excluded by sync_list config: random_files/Ge2YFs6HDUsEmwpbA8b80RsV8APZZk6l
Skipping item - excluded by sync_list config: random_files/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l
Number of items from OneDrive to process: 1
Uploading differences of ~/OneDrivePersonal
Processing .
The directory has not changed
Processing random_images
The directory has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p
The directory has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image0.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image1.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image2.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image3.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image5.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image4.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image8.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image9.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image6.png
The file has not changed
Processing random_images/eyy9NflXfPMxleNYnN4DTanVm3WV6m3p/image7.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3
The directory has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image0.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image1.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image2.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image4.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image6.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image3.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image8.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image5.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image9.png
The file has not changed
Processing random_images/UTv2BnXNJbZKSrUNjlK7eKVODYl7vuZ3/image7.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN
The directory has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image0.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image2.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image1.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image3.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image6.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image7.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image8.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image5.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image4.png
The file has not changed
Processing random_images/5vuzmRS6M6QsyXEGxze8oCoIxZAciXYN/image9.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if
The directory has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image1.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image3.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image5.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image4.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image7.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image9.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image2.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image6.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image0.png
The file has not changed
Processing random_images/TCdX2javImiZnd5A3FyaqOrkXoIOI9if/image8.png
The file has not changed
Processing random_files
The directory has not changed
Processing random_files/temp
The directory has not changed
Processing random_files/temp/file0.data
The file has not changed
Processing random_files/temp/file1.data
The file has not changed
Processing random_files/temp/file2.data
The file has not changed
Processing random_files/temp/file3.data
The file has not changed
Processing random_files/temp/file4.data
The file has not changed
Processing random_files/temp/file5.data
The file has not changed
Processing random_files/temp/file6.data
The file has not changed
Processing random_files/temp/file7.data
The file has not changed
Processing random_files/temp/file8.data
The file has not changed
Processing random_files/temp/file9.data
The file has not changed
Processing random_files/temp1
The directory has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY
The directory has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file0.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file1.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file2.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file3.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file4.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file5.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file6.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file7.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file8.data
The file has not changed
Processing random_files/temp1/3hzby5qSP5e47Ke2JG5obCYdnUkmJvDY/file9.data
The file has not changed
Processing random_files/temp2
The directory has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l
The directory has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file0.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file1.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file2.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file3.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file4.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file5.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file6.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file7.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file8.data
The file has not changed
Processing random_files/temp2/9kkDiggwzfimGzIC3zEMHCEIQZz43E0l/file9.data
The file has not changed
Processing random_files/temp2/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo
The directory has not changed
Processing random_files/temp2/EKP9AGkht4XU6jFs9k8yWuesv0mCOmpo/file4.data
The file has not changed
Uploading new items of ~/OneDrivePersonal
Skipping item - excluded by sync_list config: ./random_files/blah
Skipping item - excluded by sync_list config: ./random_videos
Skipping item - excluded by sync_list config: ./Dropbox
Skipping item - excluded by sync_list config: ./Documents
Skipping item - excluded by sync_list config: ./Images
Skipping item - excluded by sync_list config: ./Music
Skipping item - excluded by skip_file config: ./file1.tmp
Skipping item - excluded by sync_list config: ./file1.txt
Applying changes of Path ID: 66D53BE8A5056ECA!101
Updated Remaining Free Space: 5334903675
Processing 1 OneDrive items to ensure consistent local state due to a full scan being requested
  • anything random_files/temp* is synced
  • anything random_ima*es is synced

@abraunegg abraunegg requested a review from norbusan September 15, 2020 22:16
* Update usage documentation
@abraunegg abraunegg merged commit 1364f36 into master Sep 16, 2020
@abraunegg abraunegg deleted the fix-sync_list-wildcard-entries branch September 16, 2020 07:03
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants