Skip to content

Commit

Permalink
GH-160: Use bitwarden on demand for cold backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparrow0hawk committed Oct 7, 2024
1 parent f891d9d commit ff11fd0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@

To download the latest database backup for storing offline:

1. Unlock your Bitwarden vault for the encryption passphrase:

```bash
bw unlock
```

1. Download the backup:
1. Download the backup (you will be prompted to input your BitWarden master password):

```bash
./cold-backup.sh $ENVIRONMENT
Expand All @@ -42,13 +36,7 @@ This will create an encrypted compressed PostgreSQL custom-format archive `schem

To restore a backup to a local or proxied database:

1. Unlock your Bitwarden vault for the encryption passphrase:

```bash
bw unlock
```

1. Decrypt the archive:
1. Decrypt the archive (you will be prompted to input your BitWarden master password):

```bash
bw get password "UYCS Database Backup Passphrase" \
Expand Down

0 comments on commit ff11fd0

Please sign in to comment.