Automatic wireless folder sync app needed

danchappers

Senior Member
Jan 30, 2009
84
1
0
Hi,
I have looked around and cant seem to find an application quite fitting.

All I want is an app that will wirelessly sync just a folder automatically when I have my WiFi turned on, is there an app that can do this?

i.e. Come home from work, turn on wifi and it just syncs.

Many thanks
 

nxtwrld

Senior Member
Sep 26, 2008
123
7
0
Prague
Dropbox syncs a folder on multiple devices with a folder on dropbox server.

There is also an app called PCFileSync that syncs a folder over wifi between the phone and a samba share. I am turning it on with Tasker once it connects to my home ssid. Works great!

Sent from my Desire HD using XDA App
 

khaytsus

Senior Member
Apr 8, 2008
7,263
1,176
243
Central Kentucky
BTW, I decided to do this today.. I have one which backs up /sdcard/DCIM, and another which backs up the entire sdcard, both over wifi to my Fedora Linux workstation. I'll have to figure out how I want to execute these, but I can do it from GScript Lite, Tasker, whatever floats my boat.

Here's the notes I took, just in case I have to do it again in the future, hope it's useful to some folks..

# Get dropbear/dropbearkey from http://www.elkins.org/dropbear.tar.gz
# Get ssh off device and follow instructions (references at the end) to fix it, name fixed file "sshfxed"

# Remount /system rw
~/AndroidSDK/tools/adb shell
su
mount -o rw,remount device /system
#exit back to Linux shell
# Install dropbear and sshfixed from adb push
~/AndroidSDK/tools/adb push sshfixed /system/xbin/sshfixed
~/AndroidSDK/tools/adb push dropbear /system/xbin/dropbear
~/AndroidSDK/tools/adb push dropbearkey /system/xbin/dropbearkey
# Now get into adb shell and execute in Android..
mkdir /system/etc/dropbear
chmod 4755 /system/bin/dropbear
chmod 4755 /system/bin/dropbearkey
# Create keys
dropbearkey -t rsa -f /system/etc/dropbear/dropbear_rsa_host_key
dropbearkey -t dss -f /system/etc/dropbear/dropbear_dss_host_key
# Copy and paste the public DSS key the dss command above outputs and put it in ~/.ssh/authorized_keys on intended host. If you need to know more here, google for how to use ssh keys on Linux hosts. Basically if you're going to [email protected], on machine1 under user account "user" you create a file named authorized_keys in the .ssh directory with the output of the previous command, it tells you it's the 'public key', which is what you want to copy. It has to be all one line.

# Now actually use it all and rsync sdcard to your host :) For debugging, I suggest trying the "sshfixed -l USER -y -i /system/etc/dropbear/dropbear_dss_host_key" part just by itself and make sure you can ssh to your machine WITHOUT any prompting, password, etc.
~/AndroidSDK/tools/adb shell
# the following is all one line..
rsync -rltDv --chmod=u=rwX,g=rX,o=rX -e "sshfixed -l USER -y -i /system/etc/dropbear/dropbear_dss_host_key" /mnt/sdcard [email protected]:/your/path
-- References
Get dropbear - http://forum.xda-developers.com/showthread.php?p=8220181
Set up dropbear - http://forum.xda-developers.com/showthread.php?t=442754
Fix ssh client to use urandom - https://www.heiher.info/1592.html

Use it all to rsync over wifi - http://a-more-common-hades.blogspot.com/2010/07/backup-photos-with-rsync.html
 

AlaskanDroid

Member
Mar 20, 2010
5
0
0
Wasilla, Ak
Another vote for Dropbox, it works great! Look for referral codes in the comments on Market for some additional free storage. I use it all the time for pictures and vids for the family.

Sent from my HTC Desire using the XDA App
 

schermvlieger

Senior Member
Sep 4, 2010
51
5
0
I use S&K sync.

Horrible user interface but once things are set up you need only to start the client on your phone and press the "Start Sync" button.

Supports multiple configuration sets (local/remote directory pairs, ip address, etc), each can be started separately.

Google: "SK sync android"
 

synflex

Member
Jul 1, 2007
25
6
0
http://a-more-common-hades.blogspot.com/2010/07/backup-photos-with-rsync.html

Tasker+Rsync, and combine it with a ssh key and you can automate it easy.

I'm actually syncing to 2 android phones, with dropbox, rsync and dropbear.

Dropbox is good for documents and such, with small filesize and possiblity of sharing with others.

Using rsync for large files like movies and music folders, also some pictures, notes, keepass, and stuffs I like having around, things that's only going around between my laptop and phone.

Running a crontab that scans for my phone in adb devices, if found, pull a "last sync status" file, if interval > 1 hour or changes made locally, do a local notify-send till rsync is done, then execute dropbear on phone, rsync remote and local, kills dropbear, then push last sync file.

This way, no resources is wasted on the phone, all scanning and verification of device, system, and files were done on laptop.

At the same time I'm monitoring my development phone with frequent ssh rsync when it's in range, push updates, kernels and such across in proper folder structure.

This will ensure changes or new kernels were pushed to phone ready for testing.

Could use the same script for both phone, be it adb+ssh+rsync or pure ssh+rsync, but I personally don't like having sshd running in background when I'm connected to wifi hotspot.

Cleaner this way, less resources wasted on phone, and I can have full control over what, where, and when to sync.

I do realise that there isn't much choice for syncronization in the wild, thus you may like yo try something along the same idea, and you may get your own perfect combo to sync.

P.S. backing up, restoring or syncing bookmarks from browser.db and such could be done this way. ;)
 
Last edited: