Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

owncloudcmd and owncloud.cfg need better documentation #2030

Closed
ghost opened this issue Aug 2, 2014 · 2 comments
Closed

owncloudcmd and owncloud.cfg need better documentation #2030

ghost opened this issue Aug 2, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 2, 2014

The documentation for owncloudcmd and owncloud.cfg is insufficient to actually help set up and be able to sync using owncloudcmd.

Anyone who reads that documentation to try to sync with an owncloud server will likely not be able to. The documentation doesn't even explain all the necessary steps to actually set up the local owncloud directory. There is no information about where, if anywhere, the local owncloud directory is supposed to be specified in owncloud.cfg.

There is insufficient information about the auth process and whether its even possible to store the credentials in owncloud.cfg. Also, if someone is trying to specify the auth credentials as command-line switches to owncloudcmd as in the example, what about complex passwords that are likely to contain characters such as *$%& which are likely to confuse BASH?

Finally, there is no comprehensive listing of every available option for owncloud.cfg which there should be for reference purposes.

The closest information I could dig up on the web is the article "Headless Command Line Sync for ownCloud on Linux" which also is not comprehensive enough and uses old options.

@danimo
Copy link
Contributor

danimo commented Sep 22, 2014

https://github.com/owncloud/mirall/blob/1.7/doc/owncloudcmd.1.rst is more specific about the owncloudcmd. As owncloudcmd does not read anything from owncloud.cfg (anymore), this part is obsolete. also, owncloud.cfg does not contain passwords. The alternative, if you do not want to specify the commands as a parameter with --password (which takes special chars just fine if you put them inside single quotes), you can use netrc (5).

@naude
Copy link

naude commented Jan 4, 2017

I struggled implementing owncloudcmd on an ubuntu 14.04 headless server and finally got it working by importing the opensuse.org repositories from this page https://software.opensuse.org/download/package?project=isv:ownCloud:desktop&package=owncloud-client

Created an ownCloud directory in the headless server's user home dir and thanks to danimo updating the ownlcoudcmd not needing the confdir it then worked lovely doing this

$ owncloudcmd -u owncloudusername -p 'owncloudpass' /home/headlessuser/ownCloud/ https://ownclouddom/cloud/remote.php/webdav/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants