restore command and label design
#42
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 restoreCurrently, it will try to restore either "everything on the server" (without
-h) or "all volumes associated with an app" (if-his 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 theappservice (i.e. thewordpress_contentvolume) or thedbservice (i.e. copyingdump.sql.gzinto themariadbvolume, 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
abraside? 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
abrain 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
containerwhich restores all belonging volumes and executes all belonging commands. And/Or it's also possible to select the individualvolumeswhich should be restored. If the global-h, --host TEXToptions 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
abraside of things soon!Continues at #58