NEXTCLOUDCMD(1) | Nextcloud Client Manual | NEXTCLOUDCMD(1) |
nextcloudcmd - Command line Nextcloud client tool. nextcloudcmd(1) —————
nextcloudcmd [OPTIONS...] sourcedir nextcloudurl
nextcloudcmd is the command line tool used for the nextCloud file synchronization desktop utility.
Contrary to the 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:
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 --path /Music \
$HOME/media/music \
https://server/nextcloud
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 --path /Music \
$HOME/media/music \
ownclouds://server/nextcloud
Please report bugs at https://github.com/nextcloud/client/issues.
The Nextcloud developers
2013-2023, The Nextcloud developers
December 12, 2023 | 3.7 |