Page 1 of 1

Sync a distant WebDav server with my NAS

PostPosted: Sun Nov 04, 2012 9:54 pm
by sgripon
I have Lacie NWS1.

I have a server on internet running owncloud. I would like to be able to synchronize a folder in owncloud server with my NAS. I wonder how to do that.

The first thing I tried: using a cron job on NAS calling wget in order to download a folder over WebDav. It works for a first download, but it seems that there are some issues: pdf files can't be opened, next synchronizations download to much unchanged files.

Then, I thought to use rsync with ssh but there is no ssh client on the NAS.

I could also mount the server folder to my NAS and then use rsync but davfs is not installed in NAS.

Any other idea ?

Re: Sync a distant WebDav server with my NAS

PostPosted: Mon Nov 05, 2012 8:51 am
by Jocko
Hi sgripon
sgripon wrote:The first thing I tried: using a cron job on NAS calling wget in order to download a folder over WebDav. It works for a first download, but it seems that there are some issues: pdf files can't be opened, next synchronizations download to much unchanged files.
I assume you use a connection over a SSL protocol (HTTPs or ...). I have the same issue if the transfer mode is not binary (but ASCII).

So check if you don't use the ASCII mode. (but wget uses by default the binary transfer mode :scratch )

sgripon wrote:Then, I thought to use rsync with ssh but there is no ssh client on the NAS.
The firmware doesn't use openSSH so ssh client doesn't exist and you must use dbclient (see the SSH server menu help)

Note : usually a server is updated by a ftp access (sfp, ftpes, or ...ftp)