restore command and label design #42

Open
opened 2023-11-12 01:10:56 +00:00 by 3wordchant · 1 comment
Owner

In looking at #26, I'm wondering about the command-line interface to backup restore

Currently, it will try to restore either "everything on the server" (without -h) or "all volumes associated with an app" (if -h is set).

Personally, it would be useful to be able to restore a single service at a time – so for e.g. wordpress.example.com, being able to restore just the app service (i.e. the wordpress_content volume) or the db service (i.e. copying dump.sql.gz into the mariadb volume, then running the post-restore command to load it).

Additionally, at Autonomic, we will almost never want to restore an entire server, and we will rarely, if ever, need to restore secrets (although it's AWESOME that they are now backed up effectively through backupbot 😍). So, it would be nice if these options weren't the default.

So, I would like to propose the following CLI:

backup restore (STACK SERVICE|--all) [--secrets]

STACK      stack name, e.g. "wordpress.example.com"
SERVICE    service name, e.g. "app"

--all      restore all stacks and services
--secrets  restore secrets associated with the stacks and services to be restored

CC @moritz

In looking at #26, I'm wondering about the command-line interface to `backup restore` Currently, it will try to restore either "everything on the server" (without `-h`) or "all volumes associated with an app" (if `-h` is set). Personally, it would be useful to be able to restore a single service at a time – so for e.g. `wordpress.example.com`, being able to restore just the `app` service (i.e. the `wordpress_content` volume) or the `db` service (i.e. copying `dump.sql.gz` into the `mariadb` volume, then running the post-restore command to load it). Additionally, at Autonomic, we will almost never want to restore an entire server, and we will rarely, if ever, need to restore secrets (although it's AWESOME that they are now backed up effectively through backupbot 😍). So, it would be nice if these options weren't the default. So, I would like to propose the following CLI: ``` backup restore (STACK SERVICE|--all) [--secrets] STACK stack name, e.g. "wordpress.example.com" SERVICE service name, e.g. "app" --all restore all stacks and services --secrets restore secrets associated with the stacks and services to be restored ``` CC @moritz
3wordchant added this to the backupbot revolution project 2023-11-12 01:11:50 +00:00
Member

I like the idea of being able to choose the volumes/container to restore.

Secrets are only backed up at the moment. Without having the secrets you are not able to restore most database dumps without manually resetting the passwords. But there is still no automated secret restore function. This would need to be implemented into abra.

I like the idea of being able to choose the volumes/container to restore. Secrets are only backed up at the moment. Without having the secrets you are not able to restore most database dumps without manually resetting the passwords. But there is still no automated secret restore function. This would need to be implemented into `abra`.
decentral1se added the
help wanted
label 2024-01-11 13:32:34 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/backup-bot-two#42
No description provided.