coolify_import_database
[DESTRUCTIVE] Restore a backup into a standalone database from S3, a server path, or an earlier upload (Coolify v4.4+). Runs in the background; poll coolify_get_database_import. source=server also needs the deploy token ability.
Instructions
[DESTRUCTIVE] Restore a backup into a standalone database from S3, a server path, or an earlier upload (Coolify v4.4+). Runs in the background; poll coolify_get_database_import. source=server also needs the deploy token ability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Object key (source=s3) or absolute server path (source=server) | |
| uuid | Yes | UUID of the database | |
| source | Yes | Where the backup file comes from: an earlier upload, an S3 storage, or a path on the database server | |
| confirm | No | Set to true to confirm this destructive operation | |
| dump_all | No | The file is an all-databases dump | |
| upload_id | No | Upload ID returned by POST .../imports/uploads (source=upload only) | |
| keep_owners | No | Keep owners and privileges of a PostgreSQL archive | |
| s3_storage_uuid | No | S3 storage UUID (source=s3 only) | |
| sqlite_database | No | Target SQLite database file | |
| replace_existing | No | Replace objects that already exist (PostgreSQL --clean behavior) | |
| restore_mysql_users | No | Restore users and privileges of an all-databases MySQL/MariaDB dump |