You may recall my previous article showing how to sync your OwnCloud repository on a headless Linux server. This process has changed with the newer version of the OwnCloud client and still isn't documented well on their site.
It's actually become much easier to do a complete sync - there's no worrying about a config file anymore, it's all done from the command-line. The command now looks something like this:
owncloudcmd -u [username] -p [userpass] [local HD path] [serverurl]
So, to sync everything you might create a script that looks something like this:
owncloudcmd -u tony -p password1 /home/tony/ownCloud https://cloud.example.com/
If you are using a self-signed SSL certificate, you will need to add "--trust" to the command. They've also added support for .netrc for your login information, and a less verbose option. Be sure to just run the command "owncloudcmd" once from the console to see all the options.
In addition, you can sync a certain folder by passing a path to webdav like so:
owncloudcmd -u tony -p password1 /home/tony/justpart https://cloud.example.com/remote.php/webdav/Documents/OneFolder
That command will cause just the "Documents/OneFolder" folder to sync down to /home/tony/justpart/