Repository navigation
feat(deploy): faable deploy volumes - #17
Merged
Merged
Conversation
…kups, backup, restore, export and import of an app's volumes (backlog §460) Over the api's /volume and /volume-operation, which already had all of it. restore and import ask before going (--yes in non-interactive mode): both stop the app while they write, and both back the volume up first — the command ends saying which backup undoes it. import takes a directory (with --to, where it lands inside the volume) or a .tar.gz, packs it with the system tar (COPYFILE_DISABLE: no AppleDouble files from macOS), PUTs it to the signed URL and applies it. export waits and downloads to <app>-<volume>-<date>.tar.gz. Hidden in the help, like the api endpoints (x-internal), until the blueprints are published.
…ume, the app keeps serving (backlog §460) put <files and directories..> --to <dir in the volume>: a file keeps its name, a directory's contents go into --to. Packed like an import (pack.ts, its own module and tested on the archive's layout) and sent as kind put: the platform renames each file into place with the app serving and no backup first (api POST /volume/:id/put, controller-deploy put; up to 100 MB). Asks before going (--yes in non-interactive mode): same names are replaced. import now says to use put for loose files.
|
🎉 This PR is included in version 4.27.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comandos de volúmenes — backlog §460, puntos 1 y 2; comparativa en
arch/deploy/volumenes-cli-comparativa.md.Punto 1, sobre la api existente:
volumes list— volúmenes de la app con el uso medido frente a la cuota.volumes backups/volumes backup.volumes restore <backup>— confirma; para la app y hace backup antes; dice qué backup lo deshace.volumes export [-o file]— espera y descarga.volumes import <dir|tar.gz> [--to]— para la app, backup antes, fusiona.Punto 2:
volumes put <ficheros y dirs..> --to <dir>— unos pocos ficheros (≤ 100 MB) con la app sirviendo: cada fichero se coloca conrename, sin backup previo. Depende de faablecloud/controller-deploy#41 y faablecloud/api#60 (en ese orden).Oculto en la ayuda como los endpoints (
x-internal) hasta publicar las blueprints.Probado: tests de
--to, espera, formato y del empaquetado (layout del tar);listybackupsreales contra fundacion-erp.lib › stdinen la suite completa: intermitente preexistente.