From 891c192ebcc275d49afe4c08c0729c8afa87e758 Mon Sep 17 00:00:00 2001 From: shile <13051960278@163.com> Date: Wed, 27 May 2020 18:03:23 +0800 Subject: [PATCH] Add install instructions for nextcloudcmd Signed-off-by: shile <13051960278@163.com> --- doc/nextcloudcmd.rst | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/nextcloudcmd.rst b/doc/nextcloudcmd.rst index 81d00b2b3..ba722d8ec 100644 --- a/doc/nextcloudcmd.rst +++ b/doc/nextcloudcmd.rst @@ -8,6 +8,34 @@ repositories to the same state. Contrary to the GUI-based client, ``nextcloudcmd`` does not repeat synchronizations on its own. It also does not monitor for file system changes. + +Install ``nextcloudcmd`` +~~~~~~~~~~~~ + +CentOS + +:: + + $ sudo yum -y install epel-release + $ sudo yum -y install nextcloud-client + +Ubuntu/Debian + +:: + + $ sudo add-apt-repository ppa:nextcloud-devs/client + $ sudo apt update + $ sudo apt install nextcloud-client + + +Refer to the link + +- https://nextcloud.com/install/#install-clients +- https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client +- https://pkgs.alpinelinux.org/packages?name=nextcloud-client +- https://help.nextcloud.com/t/linux-packages-status/10216 + + To invoke ``nextcloudcmd``, you must provide the local and the remote repository URL using the following command:: @@ -84,3 +112,13 @@ Exclude List installed along with ``nextcloudcmd`` and thus be available in a system location, be placed next to the binary as ``sync-exclude.lst`` or be explicitly specified with the ``--exclude`` switch. + +Example +~~~~~~~~~~~~ + +- Synchronize a local directory to the specified directory of the nextcloud server + +:: + + $ nextcloudcmd /home/user/ \ + https://:@/remote.php/webdav/ -- 2.30.2