How can abra use restore_path? #62

Closed
opened 2024-10-28 16:27:01 +00:00 by decentral1se · 2 comments
Owner

It follows a quite different logic, as these parameter get invalid --volumes, --container, --no-commands and it requires new PATHS argument. Seems a bit overloaded for one command. This can confuse people.

4b4371ed3f

> It follows a quite different logic, as these parameter get invalid --volumes, --container, --no-commands and it requires new PATHS argument. Seems a bit overloaded for one command. This can confuse people. https://git.coopcloud.tech/coop-cloud/backup-bot-two/commit/4b4371ed3f61dee80acd0bdd09132e44ad62dbdb
Owner

abra could detect if the app is deployed and then executes backup restore-paths instead of backup restore.
For this abra would need to extract from the given --container the connected volumes and from these volumes or the volumes given by --volumes the paths can be generated, i.e. /var/lib/docker/<service_name>_<volume_name>.
Than abra app restore could run INCLUDE_PATH=path1,path2 SERVICE=<service_name> backup restore-paths if it detects the app as undeployed.

`abra` could detect if the app is deployed and then executes `backup restore-paths` instead of `backup restore`. For this `abra` would need to extract from the given `--container` the connected `volumes` and from these volumes or the volumes given by `--volumes` the paths can be generated, i.e. `/var/lib/docker/<service_name>_<volume_name>`. Than `abra app restore` could run `INCLUDE_PATH=path1,path2 SERVICE=<service_name> backup restore-paths` if it detects the app as undeployed.
Author
Owner

Aiming for abra app backup restore and then dealing with deployed/undeployed logic internally! We've weighed up some UI/UX concerns and this seems like the best way forward for now.

Aiming for `abra app backup restore` and then dealing with deployed/undeployed logic internally! We've weighed up some UI/UX concerns and this seems like the best way forward for now.
Sign in to join this conversation.
No description provided.