• Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by fyl

  1. Hi everyone,

    I've got the following problem I'd appreciate somme help with:

    BTsync set up on Syn. 213+

    BTsync set up on Windows notebook

    Sync directories are set up, keys shared, everything is syncing fine while in the same LAN/WLAN.

    However, even though the NAS is online 24/7, the next day when I'm trying to sync from work, the NAS instance of BTsync is offline and I get the msg >no peers<.

    What am I missing here?

    Thanks in advance!



    You have to ensure your home router allows UPNP and check the sync config file and ensure UPNP is enabled.


    use_upnp bool true

     : Forces BTSync to send UPnP and NAT-PMP (whichever works) packets to the router to map incoming connections to it


    As for your work network, you have to determine if the the necessary ports are open. Most company networks uses proxies and firewalls and will like have closed those direct ports needed for BTsync to work. If you find that you can connect from a direct internet connection outside your home but just doesn't work in your workplace, then most likely is firewall is blocking the communications for Sync.


    > Can you make one that supports Comcerto2000 architecture that is on the DS414j?


    I think this should be possible. We have support with our ARM build for QNAP with the Comcerto chip and so all that should be necessary is wrap the ARM build in a package flagged as supporting Comcerto.


    Unfortunately, I do not think that I will be able to do this until after the winter holidays. 


    Thank you Richard. Looking forward to testing it :)

  3. A friend of mine told me he had this same problem on a full blown server where the server just hung. 700K files to be synced. 


    Now sure while the number of files will cause this as I would think that Btsync will just traverse the tree and then index and send those that have been index concurrently.


    I did a sync to an encrypted node from a Synology NAS to a raspberry pi running Archlinux with Btsync and it just went smoothly. Of course my data wasn't that large around 37K files over 115GB of photos.

  4. Thank you very much for the guide.


    When executing the command ln -s ld-2.17.so ld-linux.so.3, I get the following message:


    ln: ld-linux.so.3: Permission denied


    I am logged as admin through putty on my windows machine. I am also a complete noob in regards to linux.


    Any thoughts on how to get around the issue described?


    Much appreciated


    Are you logged on as Admin ? If so, try with root privilege by issuing the command su after logging in as admin. You will see the prompt change to # which means you are using root privilege.

  5. @fyl

    To recover files from encrypted you need:


    1) Actually encrypted files

    2) Sync DB from encrypted peer (this is a must. If you kill it / damage it - no way to restore files)

    3) RW key (one starting with D...)


    And to actually recover files you need to run Sync on some working computer with DB from #2 and files stored in completely same paths as they were on dead PC.


    For example, you got your Win8 dead. Sync DB was stored in %APPDATA%\BitTorrent Sync, and your files in D:\MySyncFiles.

    - get the new computer, install Sync of the same version, shut it down.

    - copy %APPDATA%\BitTorrent Sync from dead PC to %APPDATA%\BitTorrent Sync on new PC

    - Make the D:\MySyncFiles on new PC, put all the files from dead D:\MySyncFiles there. Make sure you transferred all the files including hidden dirs.

    - Run Sync.

    - on a different computer install Sync and put the RW key there (any folder). It should start receiving the data from encrypted peer and decrypt it.


    It works just using the RW keys and restoring to another new folder path. I didn't try the %AppData% bit though but I will trust you on that.


    I assume for a linux server setup,I would just need to backup the entire BTsync app folder and restore it correct ? 

  6. fyl,


    I suppose this is what you are searching for - encrypted key. If not, please write to syncapp@bittorrent.com and tell me what you are trying to achieve, I'll provide more details. 


    Following the instructions below I was able to created the Encyrpted keys and synced with another device and I can see the resultant files are encrypted. Then I tried disconnecting the source simulating source failure. Then Using the original Read and Write keys, I added back a sync folder and voila,I got the original files back ! This is great stuff man and should really be advertised more !


    Since 1.4 there is a much simpler way to generate the encrypted read-only secret. No more counting characters etc..

    Add the new folder, go to the folders preferences, show the keys with “View key”, copy the “Read & Write key” simply by clicking “Copy”, click on “Update key…”, paste the key and change only the first character from A to D. Hit “Update” followed by “Close”. Open the folders preferences again. Now you can see all three keys under the folders preferences.

  7. Procedures still works for BTSync 2.0 !
    For those of you having the Synology Ds414j, you may have issues finding a BTSync package and told repeatedly there is no build for the Comcerto 2000 processor although just an ARM processor. After researching a great deal on various sites and how this was configured for some Raspberry PI, I found this solution. So here goes. Enjoy!
    6 June 2016 : It is recommended to perform the procedures with root. With the upgrade to DSM 6.0, security has been enhanced. You can either login via root using RSA keys or do a sudo su after logging in with admin.
    1. Create Btsync folders where you want the executable to reside.
    mkdir btsynccd btsyncmkdir bin mkdir conf
    2. Download latest Sync Arm from https://download-cdn.getsyncapp.com/stable/linux-arm/BitTorrent-Sync_arm.tar.gz. (This works in DSM5 but not in DSM6)
    Note that after DSM 6 upgrade, the version above no longer worked. I found this version from http://help.getsync.com/hc/en-us/articles/206215185 which worked.
    3. Extract to /btsync/bin folder
    tar -xvf  bittorrent_sync_arm.tar.gz
    4. After untar you will find btsync executable but if you run it, you will get a "File Not found" error. This is because it is looking for /lib/ld-linux.so.3 . However this file doesn't exist on the DS414j and the one that does on the DS414J is /lib/ld-2.17.so . So what we do next is to symlink it to the file that Btsync is expecting.
    Note: You will need to redo this step everytime there is a DSM Update in order for Btsync to run.
    cd /libln -s ld-2.17.so ld-linux.so.3
    5. Create a default Btsync config file
    cd /btsync/bin./btsync --dump-sample-config > ../conf/sync.conf
    6. Modify the sync.conf file as required. E.g. Enabling username and password when accessing the btsync 
    GUI - http://<your nas IP>:8888/GUI as well as your btsync default storage path. I just pointed it to /btsync
    7. Finally execute the BTsync
    ./btsync --config ../conf/sync.conf

    Success !!

    /volume1/btsync/bin # ./btsync --config ../conf/sync.conf
    By using this application, you agree to our Privacy Policy, Terms of Use and End User License Agreement.
    BitTorrent Sync forked to background. pid = 28823. default port = 8888
    /volume1/btsync/bin #
    8. Configuring Btsync to start automatically at boot
    You need to create a  start/stop/restart/status shell script and place into /usr/local/etc/rc.d/btsync.sh
    Please modify the file paths as per your install paths.
    #!/bin/sh## Put this file in /usr/local/etc/rc.d/btsync.shPATH=$PATHcase "$1" instop)        echo "Stop BitTorrent Sync..."        kill "`cat /volume1/btsync/bin/.sync/sync.pid`"        kill "`cat /volume1/btsync/bin/.sync/sync.pid`"        ;;start)        su root -c "/volume1/btsync/bin/btsync --config /volume1/btsync/conf/sync.conf"        ;;restart)        $0 stop        sleep 1        $0 start        ;;status)        ps | grep btsync | grep -v grep        return $?        ;;*)        echo "usage: $0 { start | stop | restart | status}" >&2        exit 1        ;;esac
    If there are any errors in the above instructions, please comment. Thank you.