nextcloudcmd.1.rst 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. :orphan:
  2. nextcloudcmd(1)
  3. —————
  4. SYNOPSIS
  5. ========
  6. *nextcloudcmd* [`OPTIONS`...] sourcedir nextcloudurl
  7. DESCRIPTION
  8. ===========
  9. nextcloudcmd is the command line tool used for the nextCloud file synchronization
  10. desktop utility.
  11. Contrary to the :manpage:`nextcloud(1)` GUI client, `nextcloudcmd` only performs
  12. a single sync run and then exits. In so doing, `nextcloudcmd` replaces the
  13. `ocsync` binary used for the same purpose in earlier releases.
  14. A *sync run* synchronizes a single local directory using a WebDAV share on a
  15. remote nextCloud server.
  16. To invoke the command line client, provide the local and the remote repository:
  17. The first parameter is the local directory. The second parameter is
  18. the server URL.
  19. .. note:: Prior to the 1.6 release of nextcloudcmd, the tool only accepted
  20. ``owncloud://`` or ``ownclouds://`` in place of ``http://`` and ``https://`` as
  21. a scheme. See ``Examples`` for details.
  22. OPTIONS
  23. =======
  24. ``--path``
  25. Overrides default remote root folder to a specific subfolder on the server(e.g.: /Documents would sync the Documents subfolder on the server)
  26. ``—user``, ``-u`` ``[user]``
  27. Use ``user`` as the login name.
  28. ``—password``, ``-p`` ``[password]``
  29. Use ``password`` as the password.
  30. ``-n``
  31. Use ``netrc (5)`` for login.
  32. ``—non-interactive``
  33. Do not prompt for questions.
  34. ``—silent``, ``—s``
  35. Inhibits verbose log output.
  36. ``—trust``
  37. Trust any SSL certificate, including invalid ones.
  38. ``—httpproxy http://[user@pass:]<server>:<port>``
  39. Uses ``server`` as HTTP proxy.
  40. ``—exclude [file]``
  41. Exclude list file
  42. ``—unsyncedfolders [file]``
  43. File containing the list of unsynced folders (selective sync)
  44. ``—max-sync-retries [n]``
  45. Retries maximum n times (defaults to 3)
  46. ``-h``
  47. Sync hidden files,do not ignore them
  48. Example
  49. =======
  50. To synchronize the nextCloud directory ``Music`` to the local directory ``media/music``
  51. through a proxy listening on port ``8080`` on the gateway machine ``192.168.178.1``,
  52. the command line would be::
  53. $ nextcloudcmd —httpproxy http://192.168.178.1:8080 --path /Music \
  54. $HOME/media/music \
  55. https://server/nextcloud
  56. ``nextcloudcmd`` will enquire user name and password, unless they have
  57. been specified on the command line or ``-n`` (see `netrc(5)`) has been passed.
  58. Using the legacy scheme, it would be::
  59. $ nextcloudcmd —httpproxy http://192.168.178.1:8080 --path /Music \
  60. $HOME/media/music \
  61. ownclouds://server/nextcloud
  62. BUGS
  63. ====
  64. Please report bugs at https://github.com/nextcloud/client/issues.
  65. SEE ALSO
  66. ========
  67. :manpage:`nextcloud(1)`