Add install instructions for nextcloudcmd
authorshile <13051960278@163.com>
Wed, 27 May 2020 10:03:23 +0000 (18:03 +0800)
committerCamila <smayres@gmail.com>
Wed, 3 Jun 2020 14:10:55 +0000 (16:10 +0200)
Signed-off-by: shile <13051960278@163.com>
doc/nextcloudcmd.rst

index 81d00b2b35c26a9d4f119a072363226bef4c5206..ba722d8ec1e8cec61e26c33a9a59b0503f981fd9 100644 (file)
@@ -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/<my_sync_folder> \
+    https://<username>:<secret>@<server_address>/remote.php/webdav/<Directory_that_has_been_created>