sts Posted July 2, 2013 Report Share Posted July 2, 2013 Hey!I would like to know if you are planning instant syncing on FreeBSD (and Mac I guess). Currently I have to wait rescan_time before changes get committed. However, it would be possible to implement event scanning by kqueue I guess. Is this right and what are your plans?In regards,Stephan Quote Link to comment Share on other sites More sharing options...
kos13 Posted July 2, 2013 Report Share Posted July 2, 2013 There is instant syncing on Mac. FreeBSD doesn't have a proper file notifications yet. Quote Link to comment Share on other sites More sharing options...
sts Posted July 2, 2013 Author Report Share Posted July 2, 2013 I thought thats what kqueue is for? And its there since FreeBSD 4.1. Quote Link to comment Share on other sites More sharing options...
Harold Feit Posted July 2, 2013 Report Share Posted July 2, 2013 If you can find the exact api calls to have sync get notified about filesystem changes, we're listening. Quote Link to comment Share on other sites More sharing options...
sts Posted July 2, 2013 Author Report Share Posted July 2, 2013 I guess you are using inotify for linux. Maybe you want to take a look at devel/inotify:http://www.freshports.org/devel/libinotifywhich is a inotify-compatible library based on kqueue/kevent. If you want to use kqueue/kevent directy, you may want to have a look at the man-page:http://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 Quote Link to comment Share on other sites More sharing options...
sts Posted July 14, 2013 Author Report Share Posted July 14, 2013 What is the current status of implementing instant syncing in FreeBSD? Quote Link to comment Share on other sites More sharing options...
PacketMan Posted April 29, 2014 Report Share Posted April 29, 2014 Please don't flame me for digging up an old topic. I just took an old XP machine, blew it away and installed FreeBSD 10.0, but no GUI yet. Got btsync installed and all seems fine Wow, I haven't done this for like almost 20 years now. Thanks BT Sync team for motivating me with something really cool. I am curious is this 10 minute syncing behavior still the only behavior, or has changes been made and I can now somehow set btsync to use some form of instant notify. I'm just curious, as I might want to build a generic hardware NAS and stick some flavour of Linux or UNIX on it. I like FreeBSD because I work with Juniper routers/switches which are based on FreeBSD. But maybe I might want consider a Linux machine, and behaviors like this 10 minute folder re-scan would help me decide. Is there a way to manually configure say a 60 second folder scan? Thanks again all,Packet Man Quote Link to comment Share on other sites More sharing options...
nils Posted April 29, 2014 Report Share Posted April 29, 2014 The setting you are looking for is called folder_rescan_interval and accepts values in seconds e.g. 600 = 10 minutes (also the standard value). You will need to use a config in conjunction with the btsync command. If you call the btsync binary from the CLI with the option --dump-sample-config you can get a config template and continue from there. Quote Link to comment Share on other sites More sharing options...
PacketMan Posted May 28, 2014 Report Share Posted May 28, 2014 The setting you are looking for is called folder_rescan_interval and accepts values in seconds e.g. 600 = 10 minutes (also the standard value). You will need to use a config in conjunction with the btsync command. If you call the btsync binary from the CLI with the option --dump-sample-config you can get a config template and continue from there. Any chance you, or anyone else can post your config? I did it and it executes fine, but my testing suggests its still 10 minutes. This is the line in my config file: “folder_rescan_interval”: 20, Quote Link to comment Share on other sites More sharing options...
PacketMan Posted June 3, 2014 Report Share Posted June 3, 2014 Any chance you, or anyone else can post your config? I did it and it executes fine, but my testing suggests its still 10 minutes. This is the line in my config file: “folder_rescan_interval”: 20, Yeah my testing confirms this is not working. My config file seems to be loading fine, and passes other parameters but this one is not working. I don't get any error messages though. I dump a bunch of files into a folder, and it takes up to 10 minutes for it to get indexed and pushed. Do I need to put it in a specific place in the file? Can someone who has this working send me a copy of that section of their config file please. Thanks again. Quote Link to comment Share on other sites More sharing options...
PacketMan Posted June 4, 2014 Report Share Posted June 4, 2014 Sorry folks for wasting your time. I got this working. I am so green with UNIX, including JSON files. Anyway I fixed my boo boo, and now I have a very slick system running. Thanks for all your help previously. Packet Man Quote Link to comment Share on other sites More sharing options...
RomanZ Posted June 5, 2014 Report Share Posted June 5, 2014 @PacketMan Just finished the test in my lab - it works. I suggest you dropping me your config file so I can check what is wrong with it. Glad to hear it works for you now! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.