Way to set folder_rescan_interval in linux?


Datapotomus

Recommended Posts

  • 4 months later...

all,

 

This is a param of a first level. Here is a sample config for it:

 

{   "device_name": "Mint CONF",  "listening_port" : 0,                       // 0 - randomize port    "storage_path" : "/home/test/BTSync1367/.sync",  "check_for_updates" : true,   "use_upnp" : true,                              // use UPnP for port mapping  "webui" :  {    "listen" : "0.0.0.0:8888",    "login" : "admin",    "password" : "password"  },  "folder_rescan_interval" : 567,  "shared_folders" :  [    {      "secret" : "xxx",      "dir" : "/home/test/use",      "use_relay_server" : true,      "use_tracker" : true,       "use_dht" : false,      "search_lan" : true,      "use_sync_trash" : true    }  ]}
Link to comment
Share on other sites

Thanks for the input, let's start the learning:

 

a conf file with only this:

{   "folder_rescan_interval" : 2000000000,}

gives 

Error while parsing config file: parse error: invalid object key (must be a string)          scan_interval" : 2000000000, }                      (right here) ------^
I really like all the other default values, so I would like to provide a minimalistic conf file,
 
What is the minimum needed, and what are the default values of those minimums
Link to comment
Share on other sites

a conf file with only this:

{   "folder_rescan_interval" : 2000000000,}
gives 

Error while parsing config file: parse error: invalid object key (must be a string)          scan_interval" : 2000000000, }                      (right here) ------^

 

That will indeed give an error, as it's not valid JSON syntax.

 

You'd need to remove the "," at the end of the line. A line should only end with a "," if there are further name/value pairs to follow, therefore, the last name/value pair should not end with a ","

Link to comment
Share on other sites

Ok,

then second hurdle

{   "folder_rescan_interval" : 2000000000}
To use BitTorrent Sync you should specify shared directories in config file or enable Web UI or API, or enable built-in tracker

What's the default for this? And how to specify it in the config file?

Link to comment
Share on other sites

Ok,

then second hurdle

{   "folder_rescan_interval" : 2000000000}
To use BitTorrent Sync you should specify shared directories in config file or enable Web UI or API, or enable built-in tracker
What's the default for this? And how to specify it in the config file?

 

The default folder_rescan_interval value is 600.

 

To specify shared folders in your config file, please see this post.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.