A Microsoft file hosting and synchronization service.
Hello Abubakr S, thanks for coming into the forums. I'm Myk, an Independent Advisor and I'll be more than happy to help you.
Unfortunately, the OneDrive client for Linux does not currently support excluding specific directories from sync. However, you can work around this by syncing each directory individually, excluding the Documents/Videos directory. Please note that this will require you to run the onedrive --synchronize --single-directory command for each directory you want to sync.
You may use the --synchronize --single-directory command to sync a specific directory. For example, if you have a directory named “Personal” in your OneDrive root that you want to sync, you may use the command onedrive --synchronize --single-directory "Personal" . If you require any further information, then please don’t hesitate to get in contact. I will be more than happy to assist you further.
Kind Regards, Myk