我尝试将 5 个共享从 Win7 计算机同步到 Linux 机器。Linux 机器的配置如下。我对设置进行了大量实验,但只能同步 5 个共享中的 3 个。有人能告诉我我的错在哪里吗?btsync 中的最大共享数量是多少?
为了确保没有遗漏任何细节,我粘贴了完整的配置。我对原始设置的更改标记为:
{
"device_name": "MySync",
"listening_port" : 0, // 0 - randomize port
/* storage_path dir contains auxilliary app files
if no storage_path field: .sync dir created in the directory
where binary is located.
otherwise user-defined directory will be used
*/
// "storage_path" : "/home/user/.sync",
// uncomment next line if you want to set location of pid file
"pid_file" : "<Userhomedir>.sync/btsync.pid",
"check_for_updates" : true,
"use_upnp" : false, // use UPnP for port mapping
/* limits in kB/s
0 - no limit
*/
"download_limit" : 0,
"upload_limit" : 0,
/* remove "listen" field to disable WebUI
remove "login" and "password" fields to disable credentials check
*/
"webui" :
{
/* directory_root path defines where the WebUI Folder browser starts
(linux only)
*/
// "directory_root" : "/home/user/MySharedFolders/"
}
/* !!! if you set shared folders in config file WebUI will be DISABLED !!!
shared directories specified in config file
override the folders previously added from WebUI.
*/
,
"shared_folders" :
[
{ //Datenfass
"secret" : "<secret1>", // * required field
"dir" : "<syncfolder1>", // * required field
// use relay server when direct connection fails
"use_relay_server" : true,
"use_tracker" : true,
"use_dht" : false,
"search_lan" : true,
// enable SyncArchive to store files deleted on remote devices
"use_sync_trash" : true ,
// restore modified files to original version, ONLY for Read-Only folders
// "overwrite_changes" : false,
// specify hosts to attempt connection without additional search
"known_hosts" :
[
"<myip>:8888"
]
}
,
{ //Compendium
"secret" : "<secret2>", // * required field
"dir" : "<sharedir2>", // * required field
// use relay server when direct connection fails
"use_relay_server" : true,
"use_tracker" : true,
"use_dht" : false,
"search_lan" : true,
// enable SyncArchive to store files deleted on remote devices
"use_sync_trash" : true,
// restore modified files to original version, ONLY for Read-Only folders
// "overwrite_changes" : false,
// specify hosts to attempt connection without additional search
"known_hosts" :
[
"<myip>:8888"
]
}
,
{ //TaggtoolDatabase
"secret" : "<secret3>", // * required field
"dir" : "<sharedir3>", // * required field
// use relay server when direct connection fails
"use_relay_server" : true,
"use_tracker" : true,
"use_dht" : false,
"search_lan" : true,
// enable SyncArchive to store files deleted on remote devices
"use_sync_trash" : true,
// restore modified files to original version, ONLY for Read-Only folders
// "overwrite_changes" : false,
// specify hosts to attempt connection without additional search
"known_hosts" :
[
"<myip>:8888"
]
}
,
{ //MyInfo
"secret" : "<secret4>", // * required field
"dir" : "<sharedir4>", // * required field
// use relay server when direct connection fails
"use_relay_server" : true,
"use_tracker" : true,
"use_dht" : false,
"search_lan" : true,
// enable SyncArchive to store files deleted on remote devices
"use_sync_trash" : true,
// restore modified files to original version, ONLY for Read-Only folders
// "overwrite_changes" : false,
// specify hosts to attempt connection without additional search
"known_hosts" :
[
"<myip>:8888"
]
}
,
{//TAggToolC-Platte
"secret" : "<secret5>", // * required field
"dir" : "<sharedir5>", // * required field
// use relay server when direct connection fails
"use_relay_server" : true,
"use_tracker" : true,
"use_dht" : false,
"search_lan" : true,
// enable SyncArchive to store files deleted on remote devices
"use_sync_trash" : true,
// restore modified files to original version, ONLY for Read-Only folders
// "overwrite_changes" : false,
// specify hosts to attempt connection without additional search
"known_hosts" :
[
"<myip>:8888"
]
}
]
// Advanced preferences can be added to config file.
// Info is available in BitTorrent Sync User Guide.
}
我尝试从 Win 界面删除文件夹,在 LinuxBox 上删除 .SyncID 等,使用界面在 WinBox 上再次添加它,并将密钥更改为最近的密钥。我找不到任何 .! 文件(在嵌套文件夹中很难做到这一点;我试过了find . -name ".\!*"
;但我不能 100% 确定有效)。非常感谢所有提示。
两台设备上的 btsync 版本均为 1.3.106。Linux 版本是 64 位版本。提前致谢
答案1
这个设置没有问题。再等一天后,Windows 客户端显示了这些共享。那时它们已经同步了。