Automatic remote sync BB10 Device

In my previous post, I mentioned that the various sharing options in BlackBerry 10 OS make life easier. I this post, I am going to describe how to use the network sharing option to remotely transfer media from your BlackBerry Z10 and store it on an external drive, that too without using desktop software.

I have a jumbo external drive connected to Raspberry Pi which makes a home file share. It runs miniDLNA and Simple Samba to share files to all devices on the network. It is eunning official Raspbian image. The instructions below allow my Raspberry Pi ( or any Linux computer) to periodically download photos and videos from my Z10 and store on the hard disk, I do not need to connect my phone via USB.

1. In BB10 settings, go to “Storage and Access” and enable “Access using Wi-Fi”. Also set the “Wi-Fi storage password” by clicking button just below it. The very next button on Z10 tells you the Z10′s device name on your network and username. Please make a note of these.

2. I have a wireless LAN router which provides networking to all devices, including Z10. You need to have either a static IP assigned to your BB10 device or the router should assign a name using DNS. Please refer to your network router manual for this. The idea is that your BB10 device should always have the same IP address or name assigned to it and should be reachable with this name from Linux computer.

3. Create mount point in Linux by running command “sudo mkdir /media/bb10″. Also have CIFS UTILS installed by running “sudo apt-get install cifs-utils”.

4. Create a file /home/pi/SCRIPTS/ containing the following code:

Edit first few lines in UPPERCASE to match your setup. Test the above script by running it from shell.

5. Once the script works from shell, you would want it to run periodically. And this should run with root permission because of the mount command. To do this, add following line in roots cron, by running sudo crontab -e

0,30 * * * * /home/pi/SCRIPTS/

This configures it to run every 30 minutes.

The same method can be extended to sync other types of files like documents. I will leave that as an exercise to the reader.

Comments are closed.