Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
danchappers
Old
#1  
Member - OP
Thanks Meter 1
Posts: 81
Join Date: Jan 2009
Default Automatic wireless folder sync app needed

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
HTC Hero
HTC Topaz
HTC HD2 (On its way)
 
danchappers
Old
#2  
Member - OP
Thanks Meter 1
Posts: 81
Join Date: Jan 2009
To any developers about: How hard would something like this be to make?
HTC Hero
HTC Topaz
HTC HD2 (On its way)
 
ZMDK
Old
#3  
Member
Thanks Meter 3
Posts: 37
Join Date: Oct 2005
Location: Gent
I think dropbox does that?
 
nxtwrld
Old
#4  
nxtwrld's Avatar
Senior Member
Thanks Meter 6
Posts: 123
Join Date: Sep 2008
Location: 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
HTC Flyer & Sensation < iPhone 4 < Desire HD < Motorola Milestone < Touch Diamond < iPhone 3G < iPhone
 
synflex
Old
#5  
synflex's Avatar
Junior Member
Thanks Meter 5
Posts: 21
Join Date: Jul 2007

 
DONATE TO ME
samba share? hm........

rsync and ssh would be a much better choice and cleaner, just a script to run.
 
khaytsus
Old
#6  
Senior Member
Thanks Meter 568
Posts: 5,787
Join Date: Apr 2008
Location: Central Kentucky
Quote:
Originally Posted by synflex View Post
samba share? hm........

rsync and ssh would be a much better choice and cleaner, just a script to run.
http://a-more-common-hades.blogspot....ith-rsync.html

Tasker+Rsync, and combine it with a ssh key and you can automate it easy.
Samsung Note i717 - 4.1.2, CM10 Nightly
Nexus 7 - 4.2.1, Stock Rooted
Try my Alternative XDA CSS Themes (including 2010!)

--
http://theblackmoor.net
http://unlimitedphoto.com
 
khaytsus
Old
#7  
Senior Member
Thanks Meter 568
Posts: 5,787
Join Date: Apr 2008
Location: 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
Quote:
~/AndroidSDK/tools/adb shell
su
mount -o rw,remount device /system
#exit back to Linux shell
# Install dropbear and sshfixed from adb push
Quote:
~/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..
Quote:
mkdir /system/etc/dropbear
chmod 4755 /system/bin/dropbear
chmod 4755 /system/bin/dropbearkey
# Create keys
Quote:
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 user@machine1, 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.
Quote:
~/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 USER@IP:/your/path
-- References
Get dropbear - http://forum.xda-developers.com/show....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....ith-rsync.html
Samsung Note i717 - 4.1.2, CM10 Nightly
Nexus 7 - 4.2.1, Stock Rooted
Try my Alternative XDA CSS Themes (including 2010!)

--
http://theblackmoor.net
http://unlimitedphoto.com
 
AlaskanDroid
Old
#8  
AlaskanDroid's Avatar
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2010
Location: 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
Old
#9  
Junior Member
Thanks Meter 4
Posts: 26
Join Date: Sep 2010
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
Old
(Last edited by synflex; 3rd November 2010 at 06:47 PM.)
#10  
synflex's Avatar
Junior Member
Thanks Meter 5
Posts: 21
Join Date: Jul 2007

 
DONATE TO ME
Quote:
Originally Posted by khaytsus View Post
http://a-more-common-hades.blogspot....ith-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.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...