From ff7c9c5cd8f61fe7eaf5e3eeed1c1d05b8fe8236 Mon Sep 17 00:00:00 2001 From: stevensting Date: Tue, 12 May 2026 12:32:56 +0200 Subject: [PATCH] fix backup download instruction and some beautifying --- README.md | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index bb7c3f2..2d10565 100644 --- a/README.md +++ b/README.md @@ -137,55 +137,57 @@ Enable basic auth in the env file, by uncommenting the following line: ## Usage -Run the cronjob that creates a backup, including the push notifications and docker logging: +### Run the cronjob that creates a backup, including the push notifications and docker logging: + `abra app cmd app run_cron` -Create a backup of all apps: +### Create a backup of all apps: `abra app run app -- backup create` > The apps to backup up need to be deployed -Create an individual backup: +### Create an individual backup: `abra app run app -- backup --host create` -Create a backup to a local repository: +### Create a backup to a local repository: `abra app run app -- backup create -r /backups/restic` > It is recommended to shutdown/undeploy an app before restoring the data -Restore the latest snapshot of all including apps: +### Restore the latest snapshot of all including apps: `abra app run app -- backup restore` -Restore a specific snapshot of an individual app: +### Restore a specific snapshot of an individual app: `abra app run app -- backup --host restore --snapshot ` -Show all snapshots: +### Show all snapshots: `abra app run app -- backup snapshots` -Show all snapshots containing a specific app: +### Show all snapshots containing a specific app: `abra app run app -- backup --host snapshots` -Show all files inside the latest snapshot (can be very verbose): +### Show all files inside the latest snapshot (can be very verbose): `abra app run app -- backup ls` -Show specific files inside a selected snapshot: +### Show specific files inside a selected snapshot: `abra app run app -- backup ls --snapshot /var/lib/docker/volumes/` -Download files from a snapshot: +### Download files from a snapshot: -``` -filename=$(abra app run app -- backup download --snapshot --path ) -abra app cp app:$filename . -``` +`abra app run app -- backup download --snapshot --path ` + +extract the from the output of the first command and use in the second. + +`abra app cp app: .` ## Run restic -- 2.49.0