ibase_backup
(PHP 5, PHP 7 < 7.4.0)
Initiates a backup task in the service manager and returns immediately
Description
This function passes the arguments to the (remote) database server. There it starts a new backup process. Therefore you won't get any responses.
Parameters
service_handleA previously opened connection to the database server.
source_dbThe absolute file path to the database on the database server. You can also use a database alias.
dest_fileThe path to the backup file on the database server.
optionsAdditional options to pass to the database server for backup. The
optionsparameter can be a combination of the following constants:IBASE_BKP_IGNORE_CHECKSUMS,IBASE_BKP_IGNORE_LIMBO,IBASE_BKP_METADATA_ONLY,IBASE_BKP_NO_GARBAGE_COLLECT,IBASE_BKP_OLD_DESCRIPTIONS,IBASE_BKP_NON_TRANSPORTABLEorIBASE_BKP_CONVERT. Read the section about ibase.constants for further information.verboseSince the backup process is done on the database server, you don't have any chance to get its output. This argument is useless.
Return Values
Success
Since the backup process is done on the (remote) server, this function just passes the arguments to it. While the arguments are legal, you won't get false.
Examples
ibase_backup() example
<?php
// Attach to database server by ip address and port
$service = ibase_service_attach ('10.1.11.200/3050', 'sysdba', 'masterkey');
// Start the backup process on database server
// Backup employee database using full path to /srv/backup/employees.fbk
// Don't use any special arguments
ibase_backup($service, '/srv/firebird/employees.fdb', '/srv/backup/employees.fbk');
// Free the attached connection
ibase_service_detach ($service);
?>ibase_backup() example with arguments
<?php
// Attach to database server by name and default port
$service = ibase_service_attach ('fb-server.contoso.local', 'sysdba', 'masterkey');
// Start the backup process on database server
// Backup employee database using alias to /srv/backup/employees.fbk.
// Backup only the metadata. Don't create a transportable backup.
ibase_backup($service, 'employees.fdb', '/srv/backup/employees.fbk', IBASE_BKP_METADATA_ONLY | IBASE_BKP_NON_TRANSPORTABLE);
// Free the attached connection
ibase_service_detach ($service);
?>