Sync a distant WebDav server with my NAS

Sync a distant WebDav server with my NAS

Postby sgripon » Sun Nov 04, 2012 9:54 pm

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 ?
sgripon
 
Posts: 15
Joined: Sun Jul 17, 2011 5:09 pm

Re: Sync a distant WebDav server with my NAS

Postby Jocko » Mon Nov 05, 2012 8:51 am

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)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Development

Who is online

Users browsing this forum: No registered users and 15 guests