Skip to content

Single command to download the latest backup #383

@AlexSkrypnyk

Description

@AlexSkrypnyk

Is your feature request related to a problem? Please describe.
Currently, to retrieve a backup, one needs to perform several actions:

  1. lagoon retrieve backup -p project -e main
  2. Record the backup ID
  3. Keep polling for a backup URL: lagoon get backup -p project -e main -B <backup ID>
  4. Download the backup from the URL via browser or through curl with additionally set headers
  5. Move the backup to the desired location

Describe the solution you'd like
I would like to have a single command that downloads a database from the production environment.
lagoon get backup latest

Lagoon CLI provides similar command format to deploy the latest commit: lagoon deploy latest

Describe alternatives you've considered
Create a shell wrapper script around current commands.

Additional context
Other hosting platforms have a single-command database retrieval options. End-users will benefit from a more simplified DX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions