company logo

Database :: backupDatabase - Backup database

The function starts the database backup service. The function can be called for databases opened locally, only.

In order to create a server database backup, you might call Client ::backupDatabase() after connecting the client to the server.


Implementation overview

Implementation details

  1. Create backup from database
    Database  :: backupDatabase (  )

    The function creates a backup file from the database opened for the database handle and stores it in the database folder under the same file name but with the extension .ozi .

  2. to list
  3. Backup database to target location
    Database  :: backupDatabase ( odaba::String &sTargetPath )

    In order to store the backup in an other folder or with another name, the target file and location name have to be passed in sTargetPath ,

    • sTargetPath - Target path

      The target path refers to a file location for the target file. The complete path includes file name and directory. It might, however, be defined as absolute path starting with the root device or folder or a relative path.

      In order to pass no file path, an empty string ( String () ) may be passed.

  4. to list