Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nextcloudcmd.1.rst « man - github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d718dae546ed025db8ece5d684d63a7d4e3049f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
:orphan:

nextcloudcmd(1)
—————

SYNOPSIS
========
*nextcloudcmd* [`OPTIONS`...] sourcedir nextcloudurl

DESCRIPTION
===========
nextcloudcmd is the command line tool used for the nextCloud file synchronization
desktop utility.

Contrary to the :manpage:`nextcloud(1)` GUI client, `nextcloudcmd` only performs
a single sync run and then exits. In so doing, `nextcloudcmd` replaces the
`ocsync` binary used for the same purpose in earlier releases.

A *sync run* synchronizes a single local directory using a WebDAV share on a
remote nextCloud server.

To invoke the command line client, provide the local and the remote repository:
The first parameter is the local directory. The second parameter is
the server URL.

.. note:: Prior to the 1.6 release of nextcloudcmd, the tool only accepted
   ``nextcloud://`` or ``nextclouds://`` in place of ``http://`` and ``https://`` as
   a scheme. See ``Examples`` for details.

OPTIONS
=======
``—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.

``—nonshib``
      Uses Non Shibboleth WebDAV Authentication

``—davpath [path]``
      Overrides the WebDAV Path with ``path``

``—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

Example
=======
To synchronize the nextCloud directory ``Music`` to the local directory ``media/music``
through a proxy listening on port ``8080`` on the gateway machine ``192.168.178.1``,
the command line would be::

  $ nextcloudcmd —httpproxy http://192.168.178.1:8080 \
                $HOME/media/music \
                https://server/nextcloud/remote.php/webdav/Music

``nextcloudcmd`` will enquire user name and password, unless they have
been specified on the command line or ``-n`` (see `netrc(5)`) has been passed.

Using the legacy scheme, it would be::

  $ nextcloudcmd —httpproxy http://192.168.178.1:8080 \
                $HOME/media/music \
                nextclouds://server/nextcloud/remote.php/webdav/Music


BUGS
====
Please report bugs at https://github.com/nextcloud/client/issues.

SEE ALSO
========
:manpage:`nextcloud(1)`