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

owncloudcmd.rst « doc - github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fb9bbc0ed899766cb9eb20d06dba7fe3f79661b4 (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
The ownCloud Client packages contain a command line client, ``owncloudcmd``, that can 
be used to synchronize ownCloud files to client machines.

``owncloudcmd`` performs a single *sync run* and then exits the synchronization 
process. In this manner, ``owncloudcmd`` processes the differences between 
client and server directories and propagates the files to bring both 
repositories to the same state. Contrary to the GUI-based client, 
``owncloudcmd`` does not repeat synchronizations on its own. It also does not 
monitor for file system changes.

To invoke ``owncloudcmd``, you must provide the local and the remote repository 
URL using the following command::

  owncloudcmd [OPTIONS...] sourcedir owncloudurl

where ``sourcedir`` is the local directory and ``owncloudurl`` is
the server URL.

Other command line switches supported by ``owncloudcmd`` include the following:

``--user``, ``-u`` ``[user]``
      Specify the user's login name.

``--password``, ``-p`` ``[password]``
      Specify the user's 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 the specified ``server`` as the HTTP proxy.
      
``--unsyncedfolders [file]`` 
      File containing list of folders to not sync

Credential Handling
~~~~~~~~~~~~~~~~~~~

By default, ``owncloudcmd`` reads the client configuration and uses the 
credentials of the GUI synchronization client. If no client is configured, or if 
you choose to use a different user to synchronize, you can specify the user 
password setting with the usual URL pattern.  For example::

  $ owncloudcmd / https://carla:secret@server/owncloud/remote.php/webdav/

To synchronize the ownCloud directory ``Music`` to the local directory
``media/music``, through a proxy listening on port ``8080``, and on a gateway
machine using IP address ``192.168.178.1``, the command line would be::

  $ owncloudcmd --httpproxy http://192.168.178.1:8080 \
                $HOME/media/music \
                https://server/owncloud/remote.php/webdav/Music

``owncloudcmd`` will prompt for the user name and password, unless they have
been specified on the command line or ``-n`` has been passed.