Author Topic: How To Debug The Backup App?  (Read 2235 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Debug The Backup App?
« on: November 13, 2005, 11:52:50 pm »
I am trying to use the backuprestore application on my C3100 to backup the Z. However, it just gives me a message saying the backup failed after doing the usual backup thing and the harddisk light flashed for a while lookinh like it was creating the backup file but then towards the end it just sits there doing nothing until finally the error message appears. It worked before and I am not sure what I did to break it . Is there anyway you can find out what the backup apps was doing and why it failed, like turning verbose logging on or enabling a hidden debug mode in the app?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
How To Debug The Backup App?
« Reply #1 on: November 14, 2005, 12:45:50 am »
i dont bother with it.  i use rar to pull out the files i lost.  you should use your commands to disable automounter(if thats the problem) before you backup.  i have been doing that without problems.

sorry-  i have no answer to your question but i just wanted to try and help.
« Last Edit: November 14, 2005, 01:23:53 am by Cresho »
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
How To Debug The Backup App?
« Reply #2 on: November 14, 2005, 05:29:08 am »
Quote
Is there anyway you can find out what the backup apps was doing and why it failed, like turning verbose logging on or enabling a hidden debug mode in the app?

You were running it from the command line to see the stderr messages?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Debug The Backup App?
« Reply #3 on: November 14, 2005, 05:39:58 pm »
Quote
Quote
Is there anyway you can find out what the backup apps was doing and why it failed, like turning verbose logging on or enabling a hidden debug mode in the app?

You were running it from the command line to see the stderr messages?


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103587\"][{POST_SNAPBACK}][/a][/div]

I didn't output anything. I tried to redirect stdout and stderr to a file and nothing. But I figured out my problem anyway. I had a lot of files in /home/zaurus/tmp and after removing them all, backup worked again.

While debugging this, I found out how backuprestore actually works and what it does.

basically, all it does is generate a file called /etc/backupfile and then restarts qtopia. Qtopia detects the backupfile during restart and does a tar of /hdd2 and /home in the Backup_Files directory called year-month-day-hour-minute.backup_model-JP-1, ie 2005-11-14-21-22.backup_SLC3100-JP-1

so the backup is just a tar file, not even gzipped.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K