restore command and label design
#42
Closed
opened 2023-11-12 01:10:56 +00:00 by 3wordchant
·
6 comments
No Branch/Tag Specified
main
renovate/docker-29.x
feature/makeDeleteDefault
restic-exporter
cmd-setup-restic-s3
prom-mon
feature/dockerfile
bb2-classic
feature/selective_paths
list
enable-label
backupbot_revolution
backup_volumes
multi_path
2.4.0+2.4.0
2.3.0+2.3.0-beta
2.2.0+2.2.1-beta
2.1.0+2.2.0-beta
2.0.1+2.1.1-beta
1.0.0+2.0.0-beta
0.2.0+1.0.0
No labels
help wanted
Milestone
No items
No Milestone
Projects
Clear projects
No projects
backupbot revolution
Done
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#42
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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