restore
command and label design
#42
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 theapp
service (i.e. thewordpress_content
volume) or thedb
service (i.e. copyingdump.sql.gz
into themariadb
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:
CC @moritz
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 referenced this issue from toolshed/organising2024-03-12 09:58:16 +00:00
decentral1se referenced this issue from toolshed/organising2024-03-28 13:54:55 +00:00
@moritz @3wordchant heyyy, it is already possible to implement this interface on the
abra
side? What CLI args would I pass to the backup-bot-two to achieve the desired interface (stack, stack + service, no secrets, with secrets etc.)Relaying updates via Matrix:
Annnnd there seems to be consensus on the CLI interface proposed in #42 (comment) 🎉
I can try wire this interface up in
abra
in the meantime and then hopefully we can test and close this one off in not$infinite_time
🙏Current usage:
Now it's possible to select the
container
which restores all belonging volumes and executes all belonging commands. And/Or it's also possible to select the individualvolumes
which should be restored. If the global-h, --host TEXT
options is set only a specific app is restored.For abra these env variables exist:
SNAPSHOT
,TARGET
,NONINTERACTIVE
,VOLUMES
,CONTAINER
,SERVICE
@3wordchant @moritz amazing stuff folks. Is there anything to be resolved here in terms of design then? I see labels mentioned in the issue name and elsewhere. Otherwise, I guess we can close off? I'll be working on the
abra
side of things soon!Continues at #58