Finalize manual backup
This commit is contained in:
parent
89937f2107
commit
37bea48d45
1 changed files with 13 additions and 0 deletions
|
@ -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.
|
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.*
|
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
|
## Ref
|
||||||
|
|
||||||
|
|
Reference in a new issue