rsync your Android

In combination with dropbear or QuickSSH rsync allows you to back up your android. Here's how to.

Getting the binaries

You can find the binaries here.

  1. Download:

wget http://adqmisc.googlecode.com/svn/trunk/androidutils/rsync/rsync-3.0.6-arm-softfloat-linux-gnueabi.gz

  1. Decompress:

zcat rsync-3.0.6-arm-softfloat-linux-gnueabi.gz > rsync

  1. Copy rsync to your phone, make sure it's in the PATH and chmod 755 rsync. I have put mind to QuickSSH's homedir (/data/data/com.teslacoilsw.quicksshd/home).

Examples

Here are a few examples that can be scripted.

Initiate a backup from your phone:

  rsync  -e "ssh -p <port>" -vrt <local-source> <user>@<server>:/<path>
  e.g. rsync -e "ssh -p 443" -vrt /mnt/sdcard/astrid me@<my-ip>:/home/me/temp 
  

Initiate a backup from your server:

  rsync rsync -vrt -e "ssh -p <port>" <user>@<phone>:/<path> <local-dest>
  e.g. rsync -vrt -e "ssh -p 2222" <user>@android:/mnt/sdcard/astrid /home/me/temp

Discussion

Alan, 2012/04/22 12:39
Now this makes sense .have been thinking of all sorts of ahproacpes to managing our websites better and have been exploring options to improve resiliency following hosting problems. At present we take an automated 4 hourly snap backup of files and DB from virt and bring back to internal server but your way makes much more sense and has security and dev/test improvements to boot. Impressive stuff
Ferdhi, 2012/04/22 14:04
It sounds like you eiehtr have no comments on your system or you use an external comment service, like Disqus. Would you care to comment on that?One more thing. I don’t know how dynamic yout pages are, but if you have no user accounts and no user created content, couldn’t you just generate HTML files from you staging box and rsync that to prod?
Enter your comment
 
  • Bookmark at
  • Bookmark "rsync your Android" at del.icio.us
  • Bookmark "rsync your Android" at Digg
  • Bookmark "rsync your Android" at blogmarks
  • Bookmark "rsync your Android" at Google
  • Bookmark "rsync your Android" at Rojo
  • Bookmark "rsync your Android" at Simpy
  • Bookmark "rsync your Android" at Spurl
  • Bookmark "rsync your Android" at StumbleUpon
  • Bookmark "rsync your Android" at Tailrank
  • Bookmark "rsync your Android" at Technorati
  • Bookmark "rsync your Android" at Live Bookmarks
  • Bookmark "rsync your Android" at Memori
  • Bookmark "rsync your Android" at Favorites
  • Bookmark "rsync your Android" at Facebook
  • Bookmark "rsync your Android" at Twitter
  • Bookmark "rsync your Android" at Mister Wong
blog/rsync-your-android.txt · Last modified: 2011/01/22 11:48 by sven
Recent changes RSS feed