From fbd381fcc19d4d592812191af8d96fcf53093dbe Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 20 May 2022 10:06:19 -0700 Subject: [PATCH] Clarify manual database extraction documentation. --- docs/how-to/backup-your-databases.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/how-to/backup-your-databases.md b/docs/how-to/backup-your-databases.md index 8e07e5309..9e66b0cac 100644 --- a/docs/how-to/backup-your-databases.md +++ b/docs/how-to/backup-your-databases.md @@ -212,15 +212,13 @@ If you prefer to restore a database without the help of borgmatic, first [extract](https://torsion.org/borgmatic/docs/how-to/extract-a-backup/) an archive containing a database dump. -The dump file can then be found in the extracted destination path within the -`~/.borgmatic/` directory. The `~` here corresponds to the HOME directory of -the user with whom you created the backup. For example, if you created the -backup with the `root` user, then the dump will be in -`EXTRACTED_DESTINATION_PATH/root/.borgmatic`. This also means you will have -to backup the HOME directory of that user you use to run `borgmatic create` -(otherwise there the dump file will not be available). +borgmatic extracts the dump file into the *`username`*`/.borgmatic/` directory +within the extraction destination path, where *`username`* is the user that +created the backup. For example, if you created the backup with the `root` +user and you're extracting to `/tmp`, then the dump will be in +`/tmp/root/.borgmatic`. -You can then use the dump file to manually restore it using the native database +After extraction, you can manually restore the dump file using native database commands like `pg_restore`, `mysql`, `mongorestore` or similar.