Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wcy-dt/onedriveignore

This project implements .onedriveignore, which is similar to .gitignore, so that Onedrive does not synchronize certain files.
https://github.com/wcy-dt/onedriveignore

onedrive powershell-script registry sync

Last synced: 5 days ago
JSON representation

This project implements .onedriveignore, which is similar to .gitignore, so that Onedrive does not synchronize certain files.

Awesome Lists containing this project

README

        

# OneDriveIgnore
This project implements .onedriveignore, which is similar to .gitignore, so that Onedrive does not synchronize certain files.

## Usage

Write the file name that you do not want to be synchronized to the .onedriveignore file in the root directory of the local OneDrive storage path.

Same as .gitignore, the file content supports regular expressions.

If the .onedriveignore file does not exist, the script will automatically create one.

Here is an example:

```.onedriveignore
example0.exe
example1.*
*example2
```

**Please note that each time you modify the .onedriveignore file, you need to re-execute the script.**

## Implementation

OneDrive can desynchronize certain files by setting the registry. The registry location is `HKLM:\SOFTWARE\Policies\Microsoft\OneDrive\EnableODIgnoreListFromGPO`.