Skip to content

Admin: print a backup reminder before database migration #1191

@wajda

Description

@wajda

Before starting a migration procedure, print a bold message suggesting creating a database backup.
Something like the following:

admin-cli db-upgrade ....

**************************************************************
**                      WARNING !                           **
** This operation is not reversible! Please make sure       **
** you created a full database backup before continue       **
**                                                          **
** Instruction how to make backups can be found here:       **
** https://www.arangodb.com/docs/stable/backup-restore.html **
**************************************************************

I confirm that I created a database backup: [y/N]

The message and the prompt should only appear when CLI is executed in the interactive mode.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions