我嘗試將 5 個共用從 Win7 電腦同步到 Linux 盒子。 Linux 盒子透過以下配置進行配置。我對這些設定進行了相當多的嘗試,但我只能同步五個共享中的三個。誰能告訴我我的錯是什麼? 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 用戶端顯示了這些共享。那時他們已經同步了。