Backup of a Database
ArcadeDB allows to execute a non-stop backup of a database while it is used without blocking writes or affecting performance.
There are two ways to perform backups:
-
Manual backup - Execute a one-time backup using SQL or the Studio UI
-
Automatic backup - Schedule recurring backups with retention policies (see Automatic Backup Scheduler)
For manual backups, you can execute the backup of a database from SQL. Look at Backup Database SQL command for more information.
Configuration
-
-f <backup-file>(string) filename of, or path to the backup file to create. -
-d <database-path>(string) path on local filesystem where to find the ArcadeDB database. -
-o(boolean) true to overwrite the backup if already exists. If false and thebackup-pathalready exists, an error is thrown. Default is false.
Cloud Backups
In a container setting it may become necessary to send backups to an S3 bucket instead of a mounted volume. Currently, ArcadeDB does not support writing a backup to S3 directly, but there are two ways of achieving this:
-
Using an intermediary container which forwards a volume’s contents to an S3 bucket. The project docker-s3-volume makes this easy.
-
Mounting an S3 bucket inside the ArcadeDB container directly with the S3 file system via filesystem in userspace.