Page 1 of 1

Use raspi as owncloud client to synchronize NAS with server

Posted: Sat Feb 23, 2013 7:35 pm
by sgripon
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

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

Posted: Tue Nov 19, 2013 7:42 am
by Ithaqua
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.

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

Posted: Tue Nov 19, 2013 2:57 pm
by prodarwin
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.

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

Posted: Mon Dec 02, 2013 4:15 pm
by Ithaqua
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!

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

Posted: Tue Nov 11, 2014 6:23 pm
by sgripon
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.

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

Posted: Fri Jan 08, 2016 6:57 pm
by sgripon
Tutorial updated with 2.1.

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

Posted: Sat Jan 09, 2016 10:51 am
by sgripon
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.

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

Posted: Sat Feb 06, 2016 4:14 am
by bricktop
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.

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

Posted: Sat Jun 04, 2016 6:53 pm
by sgripon
Tutorial updated with 2.2.

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

Posted: Tue Jun 21, 2016 1:12 pm
by mbr
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

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

Posted: Mon Aug 29, 2016 11:23 am
by GuilhemC
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)

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

Posted: Sat Nov 05, 2016 6:26 pm
by sgripon
Updated with release 2.2.4.

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

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

Posted: Wed Nov 16, 2016 9:48 pm
by sgripon
I built and tested successfully on raspberry pi 3. See tutorial, deb package is available.

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

Posted: Wed Nov 16, 2016 9:51 pm
by sgripon
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.

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

Posted: Sun Dec 11, 2016 6:09 pm
by sgripon
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...

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

Posted: Sat May 13, 2017 9:08 pm
by sgripon
New owncloud client 2.3.2 now available, page updated.

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

Posted: Sun Nov 11, 2018 9:58 am
by sgripon
Version 2.5.0 released. Enjoy!