mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-18 05:36:41 +02:00
Update documentation for --upload-only & --download-only to avoid ambiguity (#960)
* Update wording on --upload-only , --download-only to avoid ambiguity * Update --upload-only usage example to include --no-remote-delete
This commit is contained in:
parent
93163051f5
commit
d8bfe846c2
|
@ -146,6 +146,10 @@ In some cases it may be desirable to 'upload only' to OneDrive. To do this use t
|
||||||
```text
|
```text
|
||||||
onedrive --synchronize --upload-only
|
onedrive --synchronize --upload-only
|
||||||
```
|
```
|
||||||
|
**Note:** If a file or folder is present on OneDrive, that does not exist locally, it will be removed. If the data on OneDrive should be kept, the following should be used:
|
||||||
|
```text
|
||||||
|
onedrive --synchronize --upload-only --no-remote-delete
|
||||||
|
```
|
||||||
|
|
||||||
### Increasing logging level
|
### Increasing logging level
|
||||||
When running a sync it may be desirable to see additional information as to the progress and operation of the client. To do this, use the following command:
|
When running a sync it may be desirable to see additional information as to the progress and operation of the client. To do this, use the following command:
|
||||||
|
@ -680,7 +684,7 @@ Options:
|
||||||
--display-sync-status
|
--display-sync-status
|
||||||
Display the sync status of the client - no sync will be performed.
|
Display the sync status of the client - no sync will be performed.
|
||||||
--download-only
|
--download-only
|
||||||
Only download remote changes
|
Replicate the OneDrive online state locally, by only downloading changes from OneDrive. Do not upload local changes to OneDrive.
|
||||||
--dry-run
|
--dry-run
|
||||||
Perform a trial sync with no changes made
|
Perform a trial sync with no changes made
|
||||||
--enable-logging
|
--enable-logging
|
||||||
|
@ -746,7 +750,7 @@ Options:
|
||||||
--synchronize
|
--synchronize
|
||||||
Perform a synchronization
|
Perform a synchronization
|
||||||
--upload-only
|
--upload-only
|
||||||
Only upload to OneDrive, do not sync changes from OneDrive locally
|
Replicate the locally configured sync_dir state to OneDrive, by only uploading local changes to OneDrive. Do not download changes from OneDrive.
|
||||||
--user-agent ARG
|
--user-agent ARG
|
||||||
Specify a User Agent string to the http client
|
Specify a User Agent string to the http client
|
||||||
--verbose -v+
|
--verbose -v+
|
||||||
|
|
|
@ -69,7 +69,7 @@ Display what options the client will use as currently configured \- no sync will
|
||||||
Display the sync status of the client \- no sync will be performed.
|
Display the sync status of the client \- no sync will be performed.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-download\-only\fP
|
\fB\-\-download\-only\fP
|
||||||
Only download remote changes
|
Replicate the OneDrive online state locally, by only downloading changes from OneDrive. Do not upload local changes to OneDrive.
|
||||||
.br
|
.br
|
||||||
Configuration file key: \fBdownload_only\fP (default: \fBfalse\fP)
|
Configuration file key: \fBdownload_only\fP (default: \fBfalse\fP)
|
||||||
.TP
|
.TP
|
||||||
|
@ -192,7 +192,7 @@ Configuration file key: \fBsync_dir\fP (default: \fB~/OneDrive\fP)
|
||||||
Perform a synchronization
|
Perform a synchronization
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-upload\-only\fP
|
\fB\-\-upload\-only\fP
|
||||||
Only upload to OneDrive, do not sync changes from OneDrive locally
|
Replicate the locally configured sync_dir state to OneDrive, by only uploading local changes to OneDrive. Do not download changes from OneDrive.
|
||||||
.br
|
.br
|
||||||
Configuration file key: \fBupload_only\fP (default: \fBfalse\fP)
|
Configuration file key: \fBupload_only\fP (default: \fBfalse\fP)
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -303,7 +303,7 @@ final class Config
|
||||||
"Display the sync status of the client - no sync will be performed.",
|
"Display the sync status of the client - no sync will be performed.",
|
||||||
&boolValues["display_sync_status"],
|
&boolValues["display_sync_status"],
|
||||||
"download-only",
|
"download-only",
|
||||||
"Only download remote changes",
|
"Replicate the OneDrive online state locally, by only downloading changes from OneDrive. Do not upload local changes to OneDrive.",
|
||||||
&boolValues["download_only"],
|
&boolValues["download_only"],
|
||||||
"dry-run",
|
"dry-run",
|
||||||
"Perform a trial sync with no changes made",
|
"Perform a trial sync with no changes made",
|
||||||
|
@ -399,7 +399,7 @@ final class Config
|
||||||
"Sync all files in sync_dir root when using sync_list.",
|
"Sync all files in sync_dir root when using sync_list.",
|
||||||
&boolValues["sync_root_files"],
|
&boolValues["sync_root_files"],
|
||||||
"upload-only",
|
"upload-only",
|
||||||
"Only upload to OneDrive, do not sync changes from OneDrive locally",
|
"Replicate the locally configured sync_dir state to OneDrive, by only uploading local changes to OneDrive. Do not download changes from OneDrive.",
|
||||||
&boolValues["upload_only"],
|
&boolValues["upload_only"],
|
||||||
"user-agent",
|
"user-agent",
|
||||||
"Specify a User Agent string to the http client",
|
"Specify a User Agent string to the http client",
|
||||||
|
|
Loading…
Reference in a new issue