sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Use raspi as owncloud client to synchronize NAS with server

Sat Feb 23, 2013 7:35 pm

When I started building my personal cloud, I wanted several things:
  • Manage all my data by myself. I love Google tools, but I really want to have the full control of my data.
  • Be able to have a backup of my data in two different sites in case of disaster
    Have a “cache” of my data at home in order to be able to access it even when my internet bandwith was low.
This is the architecture I set up:
  • A dedicated owncloud server (http://owncloud.org/)
  • A NAS at home run by custom firmware from http://plugout.net
  • Owncloud clients:
  • Raspberry pi (http://www.raspberrypi.org/) runs a client in order to synchronize the server with the NAS (See here how to build the owncloud client for the raspi)
  • Smartphone Nexus S with automatic picture upload activated
  • Several PC at home are connected to the NAS and can add files
I made a quick test that shows the powerfullness of this cloud:

Take a picture on my smartphone
Wait automatic upload to the owncloud server
Wait download to the NAS through raspberry pi

The picture was available on my NAS at home only 1 minute after it has been taken without any manual action.

See details here: https://wiki.sgripon.net/doku.php/build ... spberry_pi

[EDIT]
  • Tutorial Updated for owncloud-client 2.5.0. PPA repository available.
  • I now provide tested package for raspberry pi 3
Last edited by sgripon on Sun Nov 11, 2018 9:58 am, edited 5 times in total.

Ithaqua
Posts: 2
Joined: Tue Nov 19, 2013 7:37 am

Re: Use raspi as owncloud client to synchronize NAS with ser

Tue Nov 19, 2013 7:42 am

Hello there,
See details here: https://wiki.sgripon.net/doku.php?id=bu ... spberry_pi
unfortunately the above link is dead. Also it's difficult to find good information on how to set up Raspberry Pi (with XBMC) as an owncloud client. I found some information on how to integrate the shares as via webdav, but I'd like to have Raspberry Pi as a sync client with local storage.

Do you have any further information on this?

Thanks in advance,
Sascha.

prodarwin
Posts: 16
Joined: Thu Oct 10, 2013 11:34 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Tue Nov 19, 2013 2:57 pm

Following this thread closely. I've wanted to do a similar thing, only use the Raspberry Pi as the NAS also. I posted a thread about this before and go no response (http://www.raspberrypi.org/phpBB3/viewt ... 61#p435761)
I'm brand new to Raspberry Pi... I'm hoping what I am trying to do is possible (and also easy), but hopefully someone could point me in the right direction.

1) I would like to setup a Pi as a NAS drive in my house and also run owncloud or another drop-box clone on it. Can both be run on the same device off the same drive?

2) Additionally, I would like to run a second, identical setup elsewhere (at my parents house a friends house, etc) that is synchronized with the same files... basically a redundant copy of everything in case of a fire or catastrophic failure of what I have locally. How would I go about doing this?

3) If possible,.. could 2 instances of owncloud/whatever, and 2 NAS storage partitions be run on each device? Basically meaning both myself and my parents would have an on-site backup and off-site backup as well as remote access to our files online.

4) Finally, if the above is possible is it possible to separate the data so that my data is only accessible/viewable by me and my parents data by them, etc?

I hope none of this derails your thread. I'm very interested in what you are doing, and a separate NAS is an option for me if necessary.

Ithaqua
Posts: 2
Joined: Tue Nov 19, 2013 7:37 am

Re: Use raspi as owncloud client to synchronize NAS with ser

Mon Dec 02, 2013 4:15 pm

I have just created a feature request on owncloud bugtracker.
https://github.com/owncloud/core/issues/6154

There seems to be a beta available already!

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Tue Nov 11, 2014 6:23 pm

The website is now up and running.

http://wiki.sgripon.net/doku.php/buildi ... spberry_pi

I am updating the tutorial for owncloud client 1.7.0. I already use 1.5.2 since several months.
Last edited by sgripon on Sun Dec 11, 2016 6:06 pm, edited 1 time in total.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Fri Jan 08, 2016 6:57 pm

Tutorial updated with 2.1.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Sat Jan 09, 2016 10:51 am

Tutorial updated once again. I now provide a deb package for raspberry pi.

https://wiki.sgripon.net/doku.php?id=bu ... spberry_pi

Please test it and give me feedback.

Twitter: @sgripon.

bricktop
Posts: 2
Joined: Sat Feb 06, 2016 2:24 am

Re: Use raspi as owncloud client to synchronize NAS with ser

Sat Feb 06, 2016 4:14 am

I don't want to thread jack, but how did you deal with unlocking the keyring automatically? The Owncloud client won't launch until the keyring is unlocked, which is a bit of a problem for headless use.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Sat Jun 04, 2016 6:53 pm

Tutorial updated with 2.2.

mbr
Posts: 6
Joined: Tue Jun 21, 2016 1:06 pm
Location: Potsdam, Germany

Re: Use raspi as owncloud client to synchronize NAS with ser

Tue Jun 21, 2016 1:12 pm

I tried to install according to the first two versions on the page
https://wiki.sgripon.net/doku.php?id=bu ... spberry_pi
(install binaries and ppa install), but both failed.
With ppa I get the error message:

Code: Select all

error while loading shared libraries: libQtSql.so.4: cannot open shared object file: No such file or directory
Any ideas?
Regards, Mattias

GuilhemC
Posts: 1
Joined: Mon Aug 29, 2016 11:19 am

Re: Use raspi as owncloud client to synchronize NAS with ser

Mon Aug 29, 2016 11:23 am

Hello,

I tried to install owncloud 2.2 on a Raspberry 3 both with your .deb package and with your ppa repository, but although it seems to be installed properly, the client does not launch when I click on it. Any idea about that? I tried the jessy-backports repository too, but the result is the same.

Thank you!

EDIT: I finally managed to get it working, not your version eventually but the jessie-backport one (2.1). I think it had to do with libowncloudsync0 which stayed in 1.7 from the installation from the official repositories. After a clean removal of everything, I got the 2.1 version along with owncloud-client with:

Code: Select all

$ apt-get -t jessie-backports install owncloud-client
(not really related to the topic but still "interesting" for people not satisfied with owncloud-client 1.7 at first)

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Sat Nov 05, 2016 6:26 pm

Updated with release 2.2.4.

Unfortunately, I do not have a raspberry pi 3 with newer raspbian to test. When possible, I will.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Wed Nov 16, 2016 9:48 pm

I built and tested successfully on raspberry pi 3. See tutorial, deb package is available.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Wed Nov 16, 2016 9:51 pm

mbr wrote:I tried to install according to the first two versions on the page
https://wiki.sgripon.net/doku.php?id=bu ... spberry_pi
(install binaries and ppa install), but both failed.
With ppa I get the error message:

Code: Select all

error while loading shared libraries: libQtSql.so.4: cannot open shared object file: No such file or directory
Any ideas?
Regards, Mattias
Maybe you should try installing missing dependency:

Code: Select all

sudo apt-get install libqt4-sql-sqlite
It's possible it is missing in deb package.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Sun Dec 11, 2016 6:09 pm

bricktop wrote:I don't want to thread jack, but how did you deal with unlocking the keyring automatically? The Owncloud client won't launch until the keyring is unlocked, which is a bit of a problem for headless use.
Well, I did nothing for this issue. Just enter the password at each startup...

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with ser

Sat May 13, 2017 9:08 pm

New owncloud client 2.3.2 now available, page updated.

sgripon
Posts: 12
Joined: Fri Feb 22, 2013 7:56 pm

Re: Use raspi as owncloud client to synchronize NAS with server

Sun Nov 11, 2018 9:58 am

Version 2.5.0 released. Enjoy!

Return to “Networking and servers”