#!/bin/sh #(c) September 2001 Thomas Guettler http://www.thomas-guettler.de #This script is in the public domain #Feedback welcome # #Makes a backup of my palm pilot. cd export PILOTPORT=/dev/ttyUSB1 if [ ! -e $PILOTPORT ]; then echo "Press Syncbutton on Palm first" exit 2 fi #export PILOTPORT=/dev/ttyUSB0 #Erstellen der Email-Aliase für Mailreader Mutt FILE=~/tmp/address_file.csv pilot-addresses -a -T -e -w $FILE MAIL_ALIASES=~/.mail-aliases rm -f $MAIL_ALIASES pilot-addresses2mail-alias.py $FILE > $MAIL_ALIASES chmod 555 $MAIL_ALIASES #HTML-Version der Adressen erstellen csv2html.py $FILE > ~/doc/adressen.html #rm -f $FILE #Backup des alten Pilots-Verzeichnisses FILE=pilot-`date --iso`.tgz tar -czf $FILE pilot rm -rf pilot/* mv $FILE ~/backup #Pilot-Daten auf Platte sichern while /bin/true; do pilot-xfer -s pilot && break echo "Retry" sleep 1 done