What's new

Running own cloud/sync solution

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Skoven

Occasional Visitor
Hi.

Given the functionality of my awesome router + merlin FW (Thanks Merlin!), i would like to create my own backup/sync/cloud solution. I am currently usign OneDrive, and would like to ditch this and create something similar using my devises.

Here is my scenario:
Router connected with HDD.
MacBook with HDD: this is where i "unload" most of my files: videos/pictures etc.
iPhone: no download/sync, but would like to access my files (photos/videos mostly).
PC: same as iPhone: access to files, but no need/space to download/sync.

My initial idea was to use the AiCloud 2.0 - Smart Sync to sync my Router HDD with my MacBook HDD, and then use Cloud Disk to access my files on the go (iPhone and PC).
I cannot get Smart Sync to work however.

I also managed to install OwnCloud on the router, but found out that it can only handle 500MB files - bummer!

So now i am not quite sure what to do...

I am thinking about using BitTorrent Sync (i tried it before, and it worked great), but i don't know if it will work on the router. I see they have a Linux ARM version, but how to install this, i do not know.

Do you guys have any good suggestions?
 
OwnCloud docs says sqlite will be painfully slow with sync client, so it's better to install mysql which is too heavy for the router.
 
OwnCloud docs says sqlite will be painfully slow with sync client, so it's better to install mysql which is too heavy for the router.
So OwnCloud is off the table i guess.

Do you know how to install BT-sync?
 
I've got RT-N66U so I've tried MIPS version before. Until they throw it off:(
Do you happen to have an install instruction? I guess the ARM install process is similar to MIPS.
 
I've fixed my previous post above, sorry. MIPS version has never existed. It was PowerPC version, which was running on WD MyCLoud. They deleted it later.

Not sure Debian instruction will be useful here.
 
That's to bad :/ I would like to have used BitTorrent Sync...
I am beginning to think that the only way to accomplish the sync (from MacBook to router HDD), is to use some sort of syncing software from my MacBook... or simply copy the files manually to the router HDD.
 
Well... an update for those interested.
I am currently testing the Mac program CronoSync for syncing my files to the HDD attached to the router.
I will report back with status on the 1TB+ sync i initiated last night, when i get home.
 
its not hard :) if you got entware installed just (and a arm7 router)

Code:
opkg update
opkg install syncthing

ps. @ryzhov_al its possible to compile syncthing for mips too :)
 
Last edited:
its not hard :) if you got entware installed just (and a arm7 router)

Code:
opkg update
opkg install syncthing

ps. @ryzhov_al its possible to compile syncthing for mips too :)
What should i do after i run
Code:
opkg update
opkg install syncthing
?
I get this from Putty:
Code:
graaskov84@RT-AC3200:/tmp/home/root# opkg install syncthing
Installing syncthing (0.12.20-1) to root...
Downloading http://pkg.entware.net/binaries/armv7/syncthing_0.12.20-1_armv7soft.ipk.
Installing libgo (5.3.0-4) to root...
Downloading http://pkg.entware.net/binaries/armv7/libgo_5.3.0-4_armv7soft.ipk.
Configuring libgo.
Configuring syncthing.
graaskov84@RT-AC3200:/tmp/home/root#

But no response on: 192.168.1.1:8384

Do i need to configure something afterwards?
 
yes you need to edit the config file

so do this in ssh

Code:
syncthing
the ctrl + c after it generated keys etc and config then

Code:
nano /opt/etc/syncthing/config.xml

find the line called
<address>127.0.0.1:8384</address>
and change it to
<address>0.0.0.0:8384</address>

after that do this

nano /opt/etc/init.d/S80syncthing

and add this content

Code:
#!/bin/sh

ENABLED=yes
PROCS=syncthing
ARGS="-no-browser"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func

ps. @zyxmon mind adding this init script.

ctrl + 0
enter
ctrl +x

chmod +x /opt/etc/init.d/S80syncthing

then

/opt/etc/init.d/S80syncthing start

and it will autostart from now on

and last but not least connect to syncthing via web and dont forget to set password and username when you get in under settings.
 
yes you need to edit the config file

so do this in ssh

Code:
syncthing
the ctrl + c after it generated keys etc and config then

Code:
nano /opt/etc/syncthing/config.xml

find the line called
<address>127.0.0.1:8384</address>
and change it to
<address>0.0.0.0:8384</address>

after that do this

nano /opt/etc/init.d/S80syncthing

and add this content

Code:
#!/bin/sh

ENABLED=yes
PROCS=syncthing
ARGS="-no-browser"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func

ps. @zyxmon mind adding this init script.

ctrl + 0
enter
ctrl +x

chmod +x /opt/etc/init.d/S80syncthing

then

/opt/etc/init.d/S80syncthing start

and it will autostart from now on

and last but not least connect to syncthing via web and dont forget to set password and username when you get in under settings.

Thank you. It works! :)
It is to bad that is uses almost all the RAM on the router, but i'll see how it goes :)
Perhaps you should write a tutorial on how to install Syncthing.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top