This page was edited more than a year ago (2012-02-03), content might not be relevant or accurate anymore.

Phone backup

Some parts apply to Nokia E52 (Symbian 9) which is not supported by Gnapplet. If you have supported phone, try can also try Gnokii (no idea which version) or Wammu/Gammu 1.29.90.

Funambol

:!: It works but it's also pretty huge bundle of Java applications. Try the other method for something lightweight.

Download installer, run it and run funamboladmin to create user. Default admin login is admin and password sa. Then download application and configure user login and URL http://IP:PORT/funambol/ds. Don't forget to allow connections through firewall.

In 10.0.0 not everything works out of the box (see Debian bug report). You can try the easy way:

sysctl net.ipv6.bindv6only=0

Or making changes to files (:!: I needed sysctl to fix funamboladmin):

diff -ru Funambol.orig/bin/hypersonic Funambol/bin/hypersonic
--- Funambol.orig/bin/hypersonic	2011-06-10 06:19:12.000000000 +0200
+++ Funambol/bin/hypersonic	2012-02-02 23:08:18.557716862 +0100
@@ -68,7 +68,7 @@
 fi
 
 JAVA_OPTS="$JAVA_OPTS $MEM_OPTS"
-JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
+JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true"
 
 if [ "$1" = "start" ] && [ "$2" = "-debug" -o "$2" = "" ] && [ "$3" = "" ] ; then
 
diff -ru Funambol.orig/tools/tomcat/bin/catalina.sh Funambol/tools/tomcat/bin/catalina.sh
--- Funambol.orig/tools/tomcat/bin/catalina.sh	2008-01-28 23:39:36.000000000 +0100
+++ Funambol/tools/tomcat/bin/catalina.sh	2012-02-02 23:21:54.385762327 +0100
@@ -1,5 +1,5 @@
 #!/bin/sh
-
+JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.

Syncevolution

I tried version 1.2.1, but any version with http server should work. You should also consult this Syncevolution HTTP server howto.

It can save all your data to plaintext files.

Supported data types:

  • contacts – text/vcard
  • calendar – text/calendar
  • notes – text/calendar

Does not support (yet?):

  • sms – text/x-vMessage
  • mms – application/vnd.wap.mms-message
  • bookmarks – text/x-vBookmark

There are also services like Memotoo which can also store SMS and bookmarks.

Phone configuration

This applies to Nokia E52:

  • Run syncevo-http-server http://localhost:9000/syncevolution
  • Allow port 9000 in your firewall.
  • Go to Control panel - Phone - Sync and create profile.
    • Only mark Contacts, Calendar and Notes for synchronisation.
    • Server version 1.1
    • Data bearer Internet
    • Use IP address instead of localhost, use port which you are using (9000).
    • Choose username and password.
    • Contacts database name is contacts.
    • Calendar database name is calendar.
    • Notes database name is notes

Now run synchronisation with this profile and read deviceID:

[ERROR] no configuration found for deviceID <your device ID>

deviceID will be something like IMEI:xxxxxxxxxxxxxxx.

Server configuration

:!: Note that we are bypassing evolution database and using file backend. You should consult above mentioned howto for more information about setup.

Set these shell variables (choose whatever peer name you want):

user=USERNAME
password=PASSWORD
deviceID=DEVICE
peer=NAME
datapath=$HOME/path-to-backup/

Then run these commands:

syncevolution --configure \
  --template default \
  --sync-property syncURL= \
  --sync-property peerIsClient=1 \
  --sync-property remoteDeviceId=${deviceID} \
  --sync-property username=${username} \
  --sync-property password=${password} \
  --source-property uri= \
  --source-property sync=none \
  ${peer}
 
syncevolution --configure \
  --source-property type=file:text/vcard:3.0 \
  --source-property evolutionsource=file://${datapath}/contacts \
  ${peer} contacts
syncevolution --configure \
  --source-property type=file:text/calendar:2.0 \
  --source-property evolutionsource=file://${datapath}/calendar \
  ${peer} calendar
syncevolution --configure \
  --source-property type=file:text/plain:1.0 \
  --source-property evolutionsource=file://${datapath}/notes \
  ${peer} notes
 
syncevolution --configure \
  --source-property sync=one-way-from-client \
  ${peer} contacts calendar notes

You should be able to synchronise successfully and find your data in $datapath.

 
Back to top
howto/phone_backup.txt · Last modified: 2012/02/03 11:45 by disorder
 
 
disorder's homepage Valid CSS Valid XHTML 1.0 Recent changes RSS feed