I have not seen articles about
BitTorrentSync for a long time, and I am very surprised that this is such a useful tool. Just recently, a new version came out *, and I decided to tell you how I applied this solution at work.

Start
Once in our company, the moment came when there was a need to exchange rather heavy files - product layouts and packaging (100-500 megabytes) between offices in Moscow, Yekaterinburg and an office in Zhejiang Province, China. The difficulty was in catastrophically low speed and reliability of communication between the Russian Federation and China.
')
When I paid attention to the problem, there was complete disorder and vacillation:
this includes file transfer in the form of multi-volume archives of 9 megabytes through corporate mail with a server in Yekaterinburg, and public file sharing sites with tons of advertising, and transmission via Skype. Advanced employees with varying success used Dropbox (until the Great Chinese Firewall started
blocking it ), and Yandex.Disk.
All these methods united one thing: low speed, breaks and blockages by the Chinese government. A 120 megabyte layout could swing for an hour and a half, and break off in the middle. Back to the era of Flashget did not want to. At the same time, the guaranteed channel of the Chinese provider was 10 Mbit / s, and inside China, of course, such speeds were issued without problems.
In the process of finding a solution to this problem, as well as the problems of slow corporate mail in China, even the installation of a satellite dish and connection to a Russian satellite was discussed. However, the incredible rates restrain ardor. The mail was more or less sorted out by setting up an intermediate mailbox on a third-party, stably working service (in our case, Yandex.Mail; Western services in China like to block, and Chinese mailers consider non-Chinese mail as spam). But with the transfer of files was not so smooth. FTP did not work for speed, VPN to the Russian server was also not stable.
Then I remembered BitTorrentSync.
Conditions
So, given:
1. Three offices: 2 in the Russian Federation, 1 in the PRC
2. Three to five employees in the Russian office (stationary machines) and six to seven in Chinese (laptops) who needed to share files between themselves, the entire infrastructure on Windows XP, 7, 8;
3. Rack servers in all offices that were used, including as a local file storage;
4. Many client machines in all offices that did not directly need to exchange files;
5. Great Chinese Firewall, sudden and merciless.
At first glance, everything is simple: install Sync for these employees, make one directory with the shared key, and everything will work.
In practice, I had to tinker a bit.
Installation, problems, solutions
1. In addition to the actual users who needed it, Sync was installed to anyone it
didn't interfere with (i.e., on stationary computers with a relatively large amount of free space on the hard disk) in read-only mode - this increased the speed and reliability of the transfer between peers within the network;
2. Additionally, the client was delivered to those who used the laptop (again, with sufficient free space) also in read-only - so users, connecting via other networks, increased the survivability of the entire system in case of problems with external communication at the office provider;
3. Also, Sync was installed on servers in all offices, so that the files were available as a network folder for those who could not install Sync;
4. In the routing rules, I had to follow the advice from the forum and open ports 3000 and 9999 so that synchronization starts faster;
5. The sync_max_time_diff parameter was set to 0, since all users were in different time zones;
Faced with some difficulties:
1. Sync by default saves all deleted files in a hidden directory. SyncArchive, which, with active use of the exchange, quickly grew to hundreds of gigabytes, scoring the memory of some devices to zero (obviously, the lack of free space on the laptop's system disk). I hope in future releases they will make the possibility of a hard adjustment of the maximum volume of this folder;
2. Attempting to transfer a file weighing 8 gigabytes also led to uncontrolled clogging of computers. The optimal size in our case turned out to be files of 50-500 megabytes;
3. Although the file sharing process for end users has been simplified to the limit, I still had to write a warning - see the spoiler:
Instruction
!!! Please note that deleting a file by one of the participants will result in deleting the file from all the others - do not engage in sabotage! If you need to delete all files of the exchange folder from your computer, you must first delete the folder from BitTorrent Sync (the Delete folder button).
Files are transferred between computers directly, without intermediate servers.
Therefore, to transfer a file on the network, there must be at least two members of our group. When one of the participants receives the file, it “by chain” transfers it to the others. The more participants in the group - the more reliably and quickly transferred files.
The maximum file transfer speed is inside the local network (for example, in one office), the minimum - between cities.
Folders are synchronized with a certain interval (several minutes), so the transfer of files may not start instantly, but with some delay.
It is enough to copy the file to the appropriate folder, and it will be downloaded to the computers to all participants.
The program, if necessary, can be installed and configured on a home PC or laptop - the files will be downloaded and there.
Respectfully,
Namebox
Sure, the program is still in beta, but it is already quite usable.
Advantages and disadvantages
Among the advantages should be noted the following:
0. Free;1. For the user, the file transfer process is transparent and simple: you just need to copy the file to the desired folder;
2. In our conditions, in general, faster and more reliable than the available cloud storage;
3. Fast exchange rate inside the office.
And, of course, disadvantages:
1. Certain efforts to customize the software for each client;
2. Some time on explaining to employees why deleting a file from himself, he deletes it from all his colleagues;
3. Beta: rare bugs are present, such as spontaneous stop of synchronization, which helps to reboot the system;
4. For paranoids - not yet opensource;
Total
It was possible to achieve a stable file exchange between the Russian Federation and China at a speed of around 120 kB / s, which is better than the 10-12 kB that we had earlier. Just compare to ...

… and after:

To connect users in the absence of experts, wrote a mini-instruction, also under the spoiler:
Setup InstructionsInstructions for connecting the share folder:
(if any points cause difficulty, please consult specialists)
0. The hard disk of the computer should have at least 25 gigabytes of free space.
1. Create a folder GC_SHARE in the root directory of the disk (for example, D: \ GC_SHARE \, or C: \ GC_SHARE \)
2. Inside GC_SHARE create folders “VIDEO”, “MOCKETS”, “IDEAS”, “PHOTO”, “DOCUMENTS” (on the topics you need to exchange);
3. Download BitTorrent Sync -
labs.bittorrent.com/experiments/sync/win-download.html4. Run the downloaded program, install in the default folder;
5. Run the installed program.
6. Connect the created folders to the program as follows:
6.1 In the BitTorrent Sync program, on the Folders tab, click the Add Folder button;
6.2 in the appeared window in the second line list the path to the folder (using the Select button, for example D: \ GC_SHARE \ MAKETS), in the first line insert the appropriate code from the table below:
MOCKETS
AV6LDEXXXXXXXXXXXXXXXXXXXXX64NVJDJCX3II
A PHOTO
ALVVVQKXXXXXXXXXXXXXXXXXXXXXXOB622CO42O
DOCUMENTS
A6E4EECXXXXXXXXXXXXXXXXXXXXXXRA44ISVTDZ3
6.3 repeat with all folders;
7. In the program, open the Settings tab:
7.1 in the Name field, write your name in Latin letters (for example ZHDANOV VLADIMIR)
7.2. Set all the checkboxes to the active position, except Notify when the download is finished;
7.3 in the fields Limit download speed and Limit upload speed set the values ​​5000 and 5000;
8. Click the Advanced button:
8.1 find the sync_max_time_diff item, click on it with the left mouse button, in the field below replace the value 600 with 0, click the Set button and close the window; Click Apply.
Setup is complete.
Features of work:
Files are transferred between computers directly, without intermediate servers.
Therefore, to transfer a file on the network, there must be at least two members of our group. When one of the participants receives the file, it “by chain” transfers it to the others. The more participants in the group - the more reliably and quickly transferred files.
The maximum file transfer speed is inside the local network (for example, in one office), the minimum - between cities.
Folders are synchronized with a certain interval (several minutes), so the transfer of files may not start instantly, but with some delay.
It is enough to copy the file to the appropriate folder, and it will be downloaded to the computers to all participants.
The program, if necessary, can be installed and configured on a home PC or laptop - the files will be downloaded and there.
Please note that deleting a file by one of the participants will result in deleting the file from all the others - do not engage in sabotage! If you need to delete all files of the exchange folder from your computer, you must first delete the folder from BitTorrent Sync (the Delete folder button).
Respectfully,
Namebox
I hope the description of the live use of the system will give you new ideas.
At home, I also use Sync: for backing up photos from a phone, archiving telephone call records, organized torrent downloads on an improvised media server, backup of work files on a file storage ... But that's another story.
And how do you use sync in life?
PS: While the post was in drafts, an even newer version was released - it already added the ability not to store copies of files in. SyncArchive, and much more.