OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: Meanie on November 13, 2005, 11:52:50 pm

Title: How To Debug The Backup App?
Post by: Meanie 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?
Title: How To Debug The Backup App?
Post by: Cresho 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.
Title: How To Debug The Backup App?
Post by: lardman 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
Title: How To Debug The Backup App?
Post by: Meanie 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.