How to backup the embedded database?
You have two alternatives:
1. Do the backup using Services API from your application. It works just like a regular backup done by the full server.
2. If your connectivity library does not support Services API for backup, you can use GBAK with embedded library. In this case you need to disconnect from the database as only one application can be connected at a time (and GBAK counts as a separate application).