Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the customizr-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6114) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"id":1036,"date":"2017-03-26T13:36:13","date_gmt":"2017-03-26T11:36:13","guid":{"rendered":"https:\/\/elise-robert.de\/?p=1036"},"modified":"2017-03-26T13:42:53","modified_gmt":"2017-03-26T11:42:53","slug":"syncing-images-from-android-smartphone-to-raspberry-pi","status":"publish","type":"post","link":"https:\/\/elise-robert.de\/2017\/03\/syncing-images-from-android-smartphone-to-raspberry-pi\/","title":{"rendered":"Syncing images from android smartphone to raspberry pi"},"content":{"rendered":"

I was looking for a solution to backup the photos taken with my smartphone to our raspberry pi.<\/p>\n

Android side<\/h1>\n

I searched for synchronization apps and ended up using rsync as backup tool. Therefore I installed the app ‘Rsync Wrapper<\/a>‘ on my smartphone and configured it with the following parameters:<\/p>\n

Source:<\/p>\n

\/storage\/9C33-6BBD\/DCIM\/Camera\/<\/pre>\n

Destination:<\/p>\n

martin@192.168.2.106:~\/photos\/handy-samsung-s7\/<\/pre>\n

Option:<\/p>\n

-r --ignore-existing --progress -e \"ssh -l martin -i \/data\/user\/0\/net.letscorp.rsyncwrapper\/files\/06a73f67-6234-40e7-81de-7add8fa4c783.key -y\"<\/pre>\n

I removed the –verbose parameter and added the –ignore-existing parameter. The –ignore-existing parameter was added by me because the synchronization took up to twenty minutes where the most of the time was used to check which files are new and should be transferred. After I added this parameter the synchronization of the file lists takes only some seconds.<\/p>\n

When you start the app you can tap on the question mark on the top and then a short tutorial appears which explains how to setup the rsync configuration.<\/p>\n

Currently I am not using scheduled jobs to synchronize the pictures automatically. I have to start the job manually but the app offers the possibility to automate this job.<\/p>\n

 <\/p>\n

Raspberry Pi 2 side<\/h1>\n

You have to install rsync also on the raspberry pi. I think it was already installed with the base raspbian image on mine. If it is not installed it can be installed with the following command:<\/p>\n

# as root user:\r\napt-get install rsync\r\n# with sudo\r\nsudo apt-get install rsync<\/pre>\n

Our raspberry pi has an external two terabyte SATA-disk connected via an USB adapter. The home directory of my user ‘martin’ is on the external disk. The disc is connected permanently to the pi and is mounted via \/etc\/fstab on startup automatically. When I copied some files from the SD-card to the external disk the pi has written on the disk with approximately twenty megabytes per second. Our pi is connected via WiFi to our network like my phone – so I think this is the limitation which leads to transfer rates of seven- to eight hundred kilobytes per second.<\/p>\n

Resources<\/p>\n