Back up Dremio
You can use the CLI to back up Dremio metadata and user-uploaded files on demand.
In Enterprise edition, Dremio supports automated backups created on a daily schedule.
The backup does not include the contents of the distributed cache such as acceleration cache, downloaded files and query results.
Be sure you read Using the Dremio Admin CLI on Kubernetes before putting anything learned on this page into practice on such a deployment.
Requirements
- The Dremio daemon is running.
- The backup command is run on the coordinator node.
- The backup path is writable by the user running Dremio daemon.
You can only restore a backup using the same version of Dremio that was used to create the backup.
Syntax
Backup syntax<dremio_home>/bin/dremio-admin backup
-u <DREMIO_ADMIN_USER> \
-p <DREMIO_ADMIN_PASS> \
-d <BACKUP_PATH>
Options
To obtain a list of backup options on the command line:
Get a list of backup options./dremio-admin backup -h
-a, --accept-all
accept all ssl certificates
Default: false
* -d, --backupdir
backup directory path. for example, /mnt/dremio/backups or
hdfs://$namenode:8020/dremio/backups
-h, --help
show usage
-i, --include-profiles
include profiles in backup.
Default: false
-j, --json
Use a json formatted backup (default binary).
Default: false
-l, --local-attach
Attach locally to Dremio JVM to authenticate user.
Not compatible with user/password options.
-p, --password
password
-u, --user
username (admin)
If the --password
option is specified without a value, the utility prompts for one interactively.
Example: Basic Backup
This following example backs up Dremio to the /tmp/backup directory:
Back up to /tmp/backup/dremio-admin backup -u dremio -p dremio123 -d /tmp/backup
A confirmation message is displayed when the backup is complete.
Example: Backup with local-attach mode
The following example backs up Dremio to the /tmp/backup directory in local attach mode.
Back up to /tmp/backup in local attach mode./dremio-admin backup -d /tmp/backup -l
output message
The output message in server.out
.
Backup created at /tmp/dremio_backup_2017-02-23_18.25, dremio tables 1400, uploaded files 150
Backing Up Dremio Step-by-Step
-
Ensure that the Dremio daemon is running, on the master node.
-
On the master node, run the following command:
Backup command<dremio_home>/bin/dremio-admin backup \
-u <DREMIO_ADMIN_USER> \
-p <DREMIO_ADMIN_PASS> \
-d <BACKUP_PATH> -
To confirm that your backup is complete, look for the following confirmation message:
Backup confirmation messageBackup created at /tmp/dremio_backup_2017-02-23_18.25, dremio tables 1400, uploaded files 150