Backup Dremio

Dremio metadata and user uploaded files can be backed up. The backup does not include the contents of the distributed cache such as acceleration cache, downloaded files and query results.

[info] This utility is only available on Mac and Linux.

Requirements

  • The Dremio daemon is running.
  • The backup command is run on the master-coordinator node.
  • The backup path is writable by the user running Dremio daemon.

[warning] Restoring Dremio

A backup can only be restored using the same version of Dremio that the backup was created on.

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:

./dremio-admin backup -h

Backup options:

    -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
    -p, --password
      password
    -u, --user
      username (admin)

[info] Note

If the --password flag is specified without a value, the utility prompts for one interactively.

Example

This following example backs up Dremio to the /tmp/backup directory:

/dremio-admin backup -u dremio -p dremio123 -d /tmp/backup

A confirmation message is displayed when the backup is complete.

Backing Up Dremio Step-by-Step

  1. Ensure that the Dremio daemon is running, on the master node:
  2. On the master node, run the following command:
      <dremio_home>/bin/dremio-admin backup \
       -u <DREMIO_ADMIN_USER> \
       -p <DREMIO_ADMIN_PASS> \
       -d <BACKUP_PATH>
    
  3. Backup is complete! Look for the confirmation message:
    Backup created at /tmp/dremio_backup_2017-02-23_18.25, dremio tables 1400, uploaded files 150
    

results matching ""

    No results matching ""