Archive for the 'Android' Category

Backup script for ToodleDo

 

Just started using ToodleDo with the GotToDo Android app on my HTC Desire.

There is a rare bug in the app which has deleted all the ToodleDo tasks for a very small number of people. the author of the app is working on a solution at the moment, but in retrospect I should have had a backup plan for this data anyway.

Benny Morrison on the app mailing list sent me a DOS script he used to back up his Toodledo account, and I have hacked it to work under linux (the core functionality comes from Benny – all I did was wrap it up in some linux specific stuff to create the appropriate directories and do some rudimentary checking).

The (short) script is below. I run this from a cron job a few times a day.

Pete

NOTE: script updated 26th July 2011 after ToodleDo redesign

#!/bin/sh
# Script to backup toodledo account
# makes a backup on your local machine and
# sends a copy to a google account of your choice
## CONFIGURATION SECTION
## CHANGE THESE VARIABLES ONLY
#
# Where you want the data stored.
DATADIR=/home/YOUR-NAME-HERE/toodledo-backup/$(date +%Y)/$(date +%m)/$(date +%d)/$(date +%H:%M:%S)
LOGIN="TOODLEDO-LOGIN"
PASS="TOODLEDO-PASSWORD"
# This variable is where you want copies of the backups sent. I use a dedicated gmail account.
ARCHIVEMAIL=ARCHIVE-EMAIL-ADDRESS
#
## END OF CONFIGURATION SECTION
mkdir -p $DATADIR
cd $DATADIR
wget -q --no-check-certificate --keep-session-cookies --save-cookies cookies.txt --post-data "email=$LOGIN&pass=$PASS" https://www.toodledo.com/signin.php
wget --quiet -O Tasks.xml --load-cookies cookies.txt http://www.toodledo.com/tools/xml.php
rm cookies.txt
rm index.php
#
## Check for login errors
if [ -f signin.php ]
then
echo "$0 - ERROR - login not complete.
There is a HIGH RISK that your ToodleDo backup did not complete."
fi
#
## Does the Tasks.xml file look OK ?
if ! egrep -q '' Tasks.xml
then
echo "$0 - ERROR - Problem with Tasks.xml file.
There is a HIGH RISK that your ToodleDo backup did not complete."
fi
## Now mail the file to a google account
/usr/bin/mutt -s "ToodleDo backup - `/bin/date`" -a Tasks.xml -- $ARCHIVEMAIL < /dev/null

Problems with switching from googlemail to gmail on HTC Desire

I tried switching my googlemail account to gmail over the weekend. At the moment I would NOT recommend this to anyone on an Android phone.

After switching the account on the google website, the functionality of the phone was heavily compromised. To start with, updates from applications in the Market Place just hung and never actually started. I also had problems syncing google contacts.

I reverted to the googlemail address again and things appear OK. Had a look around this morning and clearly this has been known for a few days:

http://www.google.com/support/forum/p/Talk/thread?tid=6083ec77fd817408&hl=en

At the moment doesn’t look like there is a fix apart from reverting the address domain.

UPDATE

Hmm – my primary calandar was not coming up/syncing. It disappeared from the Handset calendar but was clearly available on the google calendar.

Followed the instructions here

http://www.google.co.uk/support/forum/p/android/thread?tid=1fbb1eb21f4ebc02&hl=en

i.e.: “From the home screen hit menu, then settings, then applications, then manage applications, menu, filter to all

Now you should be able to locate ‘Calendar Storage’ tap it, then tap the clear data button.

Now reboot and all will be well.”

That worked for me. Calendars now back without having to perform a factory reset (which some other threads have recommended).




Switch to our mobile site