Broadband-Hamnet™ Forum :: Applications
Welcome Guest   [Register]  [Login]
 Subject :Sync folders over mesh.. 2015-05-21- 00:05:27 
KD2HKB
Member
Joined: 2014-10-29- 19:07:29
Posts: 6
Location

Hi All,

There's a small group of hams near me that are interested in mesh networking. I'm trying to do what I can to make things happen.

One application we are looking for is the ability to sync a folder over the mesh network. I know there's rsync, but since I've never used it, I wanted to ask some questions. To start off with, let me try to explain the setup we're aiming for. Several of us would like to setup Raspberry Pi file servers and have the contents of (/share) folder synced between nodes. Unfortunately, there is no RF links, nor tunnel links between these nodes while we are all at our QTH's. We do meet up once-in-a-while for breakfast, tech discussions & such and would like it if the nodes in our vehicles, once they see each other, would automatically start to sync the data.

We each add files to the folder under our own subfolder (eg, /share/george, /share/matt etc) and will likely have another RPi file server at our QTH. We just need to figure out the best way to sync the data when links are available.

Questions: Is there a way to setup rSync so that it will sync once a rf link is present? How would that be done? The only way I know of (again, with little to no knowledge of rSync) is to setup a cronjob to sync the files every 5 minutes or so. The task will simply fail if no link is present (I think). Furthermore, if we do setup a tunnel between nodes, or if an RF link is present for several hours/days, we'd only need to sync these files (likely) no more than once a day.

Any suggestions are greatly appreciated.

73

Matt KD2HKB

IP Logged
 Subject :Re:Sync folders over mesh.. 2015-05-21- 04:30:32 
K0JBH
Member
Joined: 2014-12-09- 20:24:11
Posts: 2
Location: KC,KS
Sorry, I have no knowledge regarding rsync....however.... Would a solution like bittorrent sync work? If you limited it to LAN only... your device would wait and wait until you were on the same LAN (read MESH NET) and then it would sync? I have run this program on my RPi successfully for more than a year. It has always been on the WAN, but I don't see why you couldn't use it in the way you are wanting. http://forum.bittorrent.com/topic/25097-any-way-to-limit-only-to-lan/ Ben K0JBH
IP Logged
 Subject :Re:Sync folders over mesh.. 2015-05-21- 18:10:06 
kb9mwr
Member
Joined: 2010-10-06- 23:04:25
Posts: 54
Location
You can also look into setting up an OwnCloud server on a Raspberry Pi 2
IP Logged
 Subject :Re:Sync folders over mesh.. 2015-05-21- 18:55:37 
AB9U
Member
Joined: 2012-03-06- 08:19:44
Posts: 39
Location: Cottonwood, AZ
 
Hello Matt. I have been doing something similar to what you describe as part of a social media project I am conducting. My test bed solution was to set up one IMAP email server on one node and use a common name email account for all to share. Then I have remote testers set up identical email CLIENT accounts, and use that IMAP client to synchronize across the mesh. Local data can gather on each local client while isolated but when the nodes cluster all the accounts can synchronize, messages, folders and all. Everybody sees everything. Also, folders, messages, etc. can all be shared in real time while everyone is connected. My last remote test was with ZL1FLY in NZ. He and I could work in real time via tunneling so that too is possible. IMAP has a lot of useful "hidden" features that can be made to work in non-traditional email applications. File folder sharing is one of them and automatic "syncing" is another feature that would work well in your application. The email server I use is free and one I've used for years in other applications. It can run on an old laptop in XP and up. Even so it can handle 10000 messages and/or 4GB of data in folders and has full backup capability, mirroring, filters, etc. etc. That laptop can also connect to any one of the nodes in your group and still all of you can share folders and files to your liking. Sound interesting? If you want to try out the concept I have a server online 24 x 7 ready for testing. Come on over and visit AB9U-BASE. There's a brief description on the welcome page and a l-o-n-g description in a link. See if that works for you. If it does, then that also helps in my own research. 73 - Wil.
IP Logged
de Wil - AB9U
 Subject :Re:Sync folders over mesh.. 2015-05-22- 03:35:13 
k5dlq
Member
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA
 

Owncloud is decent, but, haven't played with the sync capabilities.

Also, this looks promising:   http://sourceforge.net/projects/freefilesync/


IP Logged
Darryl - K5DLQ
www.aredn.org
 Subject :Re:Sync folders over mesh.. 2015-05-24- 01:16:32 
KD2HKB
Member
Joined: 2014-10-29- 19:07:29
Posts: 6
Location
Hi All, thanks for your replies. The only reason I had mentioned rSync is that there is a package for BBHN already built. I think Sync by BitTorrent may be my best bet at this time, though I will be researching & testing the other options as well. Thanks again, Matt KD2HKB
IP Logged
 Subject :Re:Sync folders over mesh.. 2015-10-06- 17:59:24 
kk6bbg
Member
Joined: 2012-12-10- 10:49:19
Posts: 4
Location
Hi Matt, Did you ever get BT Sync working on HAMNET? I set up 2 nodes to test it awhile back, but they never connected to each other. I thought it was a shame because it seemed like the perfect companion for sending files reliably over a mesh network. Each file is broken into small pieces and then checked for the correct checksum.
IP Logged
Page # 


Powered by ccBoard


SPONSORED AD: