From 37bea48d45039ef84b4732f10f3cabe9cbb63fa1 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 28 Jan 2022 18:44:07 +0100 Subject: [PATCH] Finalize manual backup --- op_guide/stolon/manual_backup.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/op_guide/stolon/manual_backup.md b/op_guide/stolon/manual_backup.md index 4cbc055..1e02ac4 100644 --- a/op_guide/stolon/manual_backup.md +++ b/op_guide/stolon/manual_backup.md @@ -269,6 +269,19 @@ zstdcat -vv dump-* | \ Because we want to be extra careful, we specifically asked to crash on every error and do not want to change this behavior. So, instead, we simply remove any entry that contains the specific regex stated in the previous command.* +Check that the backup has been correctly restored. +For example: + +```bash +docker exec -ti postgres psql +#then type "\l", "\c db-name", "select ..." +``` + +## Finally, store it safely + +```bash +rsync --progress -av /tmp/sql/{*.tar.gz,backup_manifest,dump-*} backup/target +``` ## Ref