Show ProgressBar with backup & restore for Firebird data

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
JD
Senior Boarder
Senior Boarder
Posts: 53
Joined: 06.09.2009, 18:27

Show ProgressBar with backup & restore for Firebird data

Post 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.
guidoaerts
Senior Boarder
Senior Boarder
Posts: 93
Joined: 01.07.2009, 16:07

Post by guidoaerts »

just an idea :
why not read the output, and step up your progressbar with each CR/LF?

Guido
Post Reply