2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-31 13:55:10 +00:00

Add docs for the sync-config command

This commit is contained in:
Diego Ximenez
2025-03-18 21:06:03 +01:00
parent dbcd5610aa
commit 10ec6b01d7
7 changed files with 52 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
### sync-config
Shows and modifies global sync configuration.
Usage: `sync-config [--delayed-uploads-wait-seconds=waitsecs | --delayed-uploads-max-attempts=attempts]`
<pre>
Displays current configuration if no options are provided. Configuration values are persisted across restarts.
New uploads for files that change frequently in syncs will be delayed until a wait time passes.
Options:
--delayed-uploads-wait-seconds Sets the seconds to be waited before a file that's being delayed is uploaded again. Default is 30 minutes (1800 seconds).
Note: wait seconds must be between 60 and 86399 (inclusive).
--delayed-uploads-max-attempts Sets the max number of times a file can change in quick succession before it starts to get delayed. Default is 2.
Note: max attempts must be between 2 and 5 (inclusive).
</pre>

View File

@@ -4,12 +4,10 @@ Controls synchronizations.
Usage: `sync [localpath dstremotepath| [-dpe] [ID|localpath]`
<pre>
If no argument is provided, it lists current configured synchronizations.
If local and remote paths are provided, it will start synchronizing a local folder into a remote folder.
If an ID/local path is provided, it will list such synchronization unless an option is specified.
If provided local and remote paths, it will start synchronizing
a local folder into a remote folder.
If an ID/local path is provided, it will list such synchronization
unless an option is specified.
Note: use the "sync-config" command to show and modify global sync configuration.
Options:
-d | --delete ID|localpath deletes a synchronization (not the files).