how to wirelessly sync data on your android phone with a local private file server
requirements:
- file server (Linux or Mac)
- sshd and rsync installed on the file server
- llama from play store
- rsync for android
http://android.kowalczuk.eu/rsync4android/
** pre setup steps
- Set router to give your file server same/static ip
- Enable sshd on your Mac or Linux server. Ssh allows you to remotely log into the server from the command line.
- make a folder in your home directory named phone-pics-backup
- install llama and rsync4android on your phone.
** Setup rsync4android (this will allow you to backup)
- in rsync4android, click 'get binaries' then 'generate keys' then copy the contents of your public key to your file server. Your public key will be in /sdcard/dss_key.pub on your phone. You need to copy the contents to the file ~/.ssh/authorized_keys on your file server. (this will allow you to log in without typing a password) (the symbol ~ is your home directory)
- click 'add profile'
-- for profile name, put something like 'backup pics to server's
-- for 'local file or directory', put the location of your pics (example: /sdcard/DCIM/ )
-- for username, put your username you use on the computer
-- for server, put the LAN ip of your file server
-- for private key, put /sdcard/dss_key
-- for remote file or directory, put ~/phone-pics-backup
-- click save, now you should be able to manually backup by clicking the profile name, 'backup pics to server'
** Setup Llama (this will let you auto run apps/commands based on your location or phone settings)
- under 'events', click the + sign
- click 'add condition' then 'wifi network detected' and then pick your WiFi network. (the conditions I use are 'connected to home WiFi' and when my battery is over 50%)
- click 'add action, pick 'locale plugin' then rsync
Done.