Skip to content

Commit

Permalink
Move options of nextcloudcmd for easier changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro Knauß <[email protected]>
  • Loading branch information
hefee committed Oct 8, 2023
1 parent a9af220 commit b52b97e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 70 deletions.
36 changes: 1 addition & 35 deletions doc/nextcloudcmd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,41 +52,7 @@ the server URL.

Other command line switches supported by ``nextcloudcmd`` include the following:

``--path``
Overrides default remote root folder to a specific subfolder on the server(e.g.: /Documents would sync the Documents subfolder on the server)

``--user``, ``-u`` ``[user]``
Use ``user`` as the login name.

``--password``, ``-p`` ``[password]``
Use ``password`` as the password.

``-n``
Use ``netrc (5)`` for login.

``--non-interactive``
Do not prompt for questions.

``--silent``, ``--s``
Inhibits verbose log output.

``--trust``
Trust any SSL certificate, including invalid ones.

``--httpproxy http://[user@pass:]<server>:<port>``
Uses ``server`` as HTTP proxy.

``--exclude [file]``
Exclude list file

``--unsyncedfolders [file]``
File containing the list of un-synced remote folders (selective sync)

``--max-sync-retries [n]``
Retries maximum n times (defaults to 3)

``-h``
Sync hidden files, do not ignore them
.. include:: ../doc/options-cmd.rst

Credential Handling
~~~~~~~~~~~~~~~~~~~
Expand Down
35 changes: 35 additions & 0 deletions doc/options-cmd.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
``--path``
Overrides default remote root folder to a specific subfolder on the server(e.g.: /Documents would sync the Documents subfolder on the server)

``--user``, ``-u`` `<user>`
Use ``user`` as the login name.

``--password``, ``-p`` `<password>`
Use `password` as the password.

``-n``
Use :manpage:`netrc(5)` for login.

``--non-interactive``
Do not prompt for questions.

``--silent``, ``--s``
Inhibits verbose log output.

``--trust``
Trust any SSL certificate, including invalid ones.

``--httpproxy`` `http://[user@pass:]<server>:<port>`
Uses `server` as HTTP proxy.

``--exclude`` `<file>`
Exclude list file

``--unsyncedfolders`` `<file>`
File containing the list of unsynced folders (selective sync)

``--max-sync-retries`` `<n>`
Retries maximum n times (defaults to 3)

``-h``
Sync hidden files,do not ignore them
36 changes: 1 addition & 35 deletions man/nextcloudcmd.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,41 +29,7 @@ the server URL.

OPTIONS
=======
``--path``
Overrides default remote root folder to a specific subfolder on the server(e.g.: /Documents would sync the Documents subfolder on the server)

``--user``, ``-u`` ``[user]``
Use ``user`` as the login name.

``--password``, ``-p`` ``[password]``
Use ``password`` as the password.

``-n``
Use ``netrc (5)`` for login.

``--non-interactive``
Do not prompt for questions.

``--silent``, ``--s``
Inhibits verbose log output.

``--trust``
Trust any SSL certificate, including invalid ones.

``--httpproxy http://[user@pass:]<server>:<port>``
Uses ``server`` as HTTP proxy.

``--exclude [file]``
Exclude list file

``--unsyncedfolders [file]``
File containing the list of unsynced folders (selective sync)

``--max-sync-retries [n]``
Retries maximum n times (defaults to 3)

``-h``
Sync hidden files,do not ignore them
.. include:: ../doc/options-cmd.rst

Example
=======
Expand Down

0 comments on commit b52b97e

Please sign in to comment.