2017-11-27 22:53:04 +03:00
|
|
|
:orphan:
|
|
|
|
|
2018-11-16 18:57:15 +03:00
|
|
|
nextcloudcmd(1)
|
2023-10-09 05:34:40 +03:00
|
|
|
---------------
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
========
|
2018-11-16 18:57:15 +03:00
|
|
|
*nextcloudcmd* [`OPTIONS`...] sourcedir nextcloudurl
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
===========
|
2018-11-16 18:57:15 +03:00
|
|
|
nextcloudcmd is the command line tool used for the nextCloud file synchronization
|
2017-11-27 22:53:04 +03:00
|
|
|
desktop utility.
|
|
|
|
|
2018-11-16 18:57:15 +03:00
|
|
|
Contrary to the :manpage:`nextcloud(1)` GUI client, `nextcloudcmd` only performs
|
|
|
|
a single sync run and then exits. In so doing, `nextcloudcmd` replaces the
|
2017-11-27 22:53:04 +03:00
|
|
|
`ocsync` binary used for the same purpose in earlier releases.
|
|
|
|
|
|
|
|
A *sync run* synchronizes a single local directory using a WebDAV share on a
|
2018-11-16 18:57:15 +03:00
|
|
|
remote nextCloud server.
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-11-16 18:57:15 +03:00
|
|
|
.. note:: Prior to the 1.6 release of nextcloudcmd, the tool only accepted
|
2021-08-20 18:46:38 +03:00
|
|
|
``owncloud://`` or ``ownclouds://`` in place of ``http://`` and ``https://`` as
|
2017-11-27 22:53:04 +03:00
|
|
|
a scheme. See ``Examples`` for details.
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
=======
|
2023-10-09 05:34:40 +03:00
|
|
|
.. include:: ../doc/options-cmd.rst
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
Example
|
|
|
|
=======
|
2018-11-16 18:57:15 +03:00
|
|
|
To synchronize the nextCloud directory ``Music`` to the local directory ``media/music``
|
2017-11-27 22:53:04 +03:00
|
|
|
through a proxy listening on port ``8080`` on the gateway machine ``192.168.178.1``,
|
|
|
|
the command line would be::
|
|
|
|
|
2023-10-09 05:34:40 +03:00
|
|
|
$ nextcloudcmd --httpproxy http://192.168.178.1:8080 --path /Music \
|
2017-11-27 22:53:04 +03:00
|
|
|
$HOME/media/music \
|
2021-08-20 18:46:38 +03:00
|
|
|
https://server/nextcloud
|
2017-11-27 22:53:04 +03:00
|
|
|
|
2018-11-16 18:57:15 +03:00
|
|
|
``nextcloudcmd`` will enquire user name and password, unless they have
|
2023-10-09 05:34:40 +03:00
|
|
|
been specified on the command line or ``-n`` (see :manpage:`netrc(5)`) has been passed.
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
Using the legacy scheme, it would be::
|
|
|
|
|
2023-10-09 05:34:40 +03:00
|
|
|
$ nextcloudcmd --httpproxy http://192.168.178.1:8080 --path /Music \
|
2017-11-27 22:53:04 +03:00
|
|
|
$HOME/media/music \
|
2021-08-20 18:46:38 +03:00
|
|
|
ownclouds://server/nextcloud
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
BUGS
|
|
|
|
====
|
2018-11-16 18:57:15 +03:00
|
|
|
Please report bugs at https://github.com/nextcloud/client/issues.
|
2017-11-27 22:53:04 +03:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
========
|
2023-10-09 05:34:40 +03:00
|
|
|
:manpage:`nextcloud(1)`, :manpage:`netrc(5)`
|