mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-08 00:42:13 +02:00
Update README.md
This commit is contained in:
parent
fed53e8612
commit
b3d644d8a9
12
README.md
12
README.md
|
@ -161,11 +161,23 @@ mkdir -p ~/.config/onedrive
|
||||||
cp ./config ~/.config/onedrive/config
|
cp ./config ~/.config/onedrive/config
|
||||||
nano ~/.config/onedrive/config
|
nano ~/.config/onedrive/config
|
||||||
```
|
```
|
||||||
|
This file does not get created by default, and should only be created if you want to change the 'default' operational parameters.
|
||||||
|
|
||||||
Available options:
|
Available options:
|
||||||
* `sync_dir`: directory where the files will be synced
|
* `sync_dir`: directory where the files will be synced
|
||||||
* `skip_file`: any files or directories that match this pattern will be skipped during sync.
|
* `skip_file`: any files or directories that match this pattern will be skipped during sync.
|
||||||
|
|
||||||
|
### sync_dir
|
||||||
|
Example: `sync_dir="~/MyDirToSync"`
|
||||||
|
|
||||||
|
**Please Note:**
|
||||||
|
Proceed with caution here by changing the default sync dir from ~/OneDrive to ~/MyDirToSync
|
||||||
|
|
||||||
|
The issue here is around how the client stores the sync_dir path in the database. If the config file is missing, or you don't use the `--syncdir` parameter - what will happen is the client will default back to `~/OneDrive` and '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.
|
||||||
|
|
||||||
|
### skip_file
|
||||||
|
Example: `skip_file = ".*|~*|Desktop|Documents/OneNote*|Documents/IISExpress|Documents/SQL Server Management Studio|Documents/Visual Studio*|Documents/config.xlaunch|Documents/WindowsPowerShell"`
|
||||||
|
|
||||||
Patterns are case insensitive. `*` and `?` [wildcards characters](https://technet.microsoft.com/en-us/library/bb490639.aspx) are supported. Use `|` to separate multiple patterns.
|
Patterns are case insensitive. `*` and `?` [wildcards characters](https://technet.microsoft.com/en-us/library/bb490639.aspx) are supported. Use `|` to separate multiple patterns.
|
||||||
|
|
||||||
Note: after changing `skip_file`, you must perform a full synchronization by executing `onedrive --resync`
|
Note: after changing `skip_file`, you must perform a full synchronization by executing `onedrive --resync`
|
||||||
|
|
Loading…
Reference in a new issue