Skip to main content

Mass Environment Export

mass environment exportโ€‹

Export an environment from Massdriver

Synopsisโ€‹

Export Environment Details

Exports an environment to the local filesystem. This is useful for backups and migrations.

Data will be exported in a tiered file structure, with directory names as the environment/instance slugs:

shell
env
โ”œโ”€โ”€ instance1
โ”‚ โ”œโ”€โ”€ <data...>
โ”œโ”€โ”€ instance2
โ”‚ โ”œโ”€โ”€ <data...>

For information about what will be exported for each instance, refer to the mass instance export command.

Usageโ€‹

shell
mass environment export <project-slug>

Examplesโ€‹

shell
# Export the "prod" environment in the "web" project
mass environment export web-prod
mass environment export [environment] [flags]

Optionsโ€‹

  -h, --help   help for export

Options inherited from parent commandsโ€‹

      --profile string   Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)

SEE ALSOโ€‹