Backup/Restore from code?

Is it possible to backup and restore IB databases from within Delphi code?
If so, where do I start to learn about this?   Also, is it possible to get
IB to back up and restore itself on  a schedule.

My app does lots of add & delete of records so I'll need to reclaim the disk
space,  and I don't want my customers to have to know about DB maintenance

Thanks in advance.

reply to