Page 1 of 1

Show ProgressBar with backup & restore for Firebird data

Posted: 21.07.2010, 22:12
by JD
I need some advice concerning how to use a progressbar while backing up or restoring Firebird databases.

I wrote a database application in Lazarus/FreePascal and I currently use the Firebird gbak utility whose output is displayed in a Memo field on a form while backing up or restoring my database. It works perfectly but I'm not satisfied with it. I want to replace the Memo field with a progressbar but I don't know how long the backup/restore process can take.

I could have chosen to backup/restore the database using compression/decompression e.g zip but I don't want the backups to be accessible outside of my application. The gbak utility does this for me but the penalty is the inability to use a progressbar tied to its operation while it is working.

Thanks for your assistance.

Posted: 22.07.2010, 18:23
by guidoaerts
just an idea :
why not read the output, and step up your progressbar with each CR/LF?

Guido