π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix copycat-db restore env docs
Manav Rathidb4e62ed1426
diff --git a/infra/copycat-db/README.md b/infra/copycat-db/README.mdindex 8a1f6d3550..f12612b838 100644--- a/infra/copycat-db/README.md+++ b/infra/copycat-db/README.md@@ -32,7 +32,7 @@ Copycat DB requires an explicit `BACKUP_MODE`:- `scw-export`: take a Scaleway-managed backup directly from `SCW_RDB_INSTANCE_ID`- `snapshot-scw-export`: restore the latest snapshot into `copycat-db-temp`, take a Scaleway-managed backup from that temporary instance, then delete it-- `snapshot-pgdump`: restore the latest snapshot into `copycat-db-temp`, attach it to `SCW_PRIVATE_NETWORK_ID`, run `pg_dump` over the private endpoint, package the dump, then delete the temporary instance+- `snapshot-pgdump`: restore the latest snapshot into `copycat-db-temp`, attach it to `SCW_PRIVATE_NETWORK_ID`, run `pg_dump` over the private endpoint, delete the temporary instance, then package the dumpTo use a snapshot-backed mode in production, set `BACKUP_MODE` accordingly in `/root/copycat-db.env` and then start the service or let the timer run it.@@ -69,11 +69,13 @@ This is the UUID of the Private Network that copycat-db should attach to the temThe compute instance running copycat-db must also be attached to this Private Network.-##### PGUSER, PGPASSWORD+##### PGUSER, PGPASSWORD, PGHOST, PGPORTNot needed in production when taking a backup (since we use the Scaleway CLI to take backups in production).-These are used when taking a `snapshot-pgdump` backup, and when restoring backups. The host and port are resolved by the scripts.+`PGUSER` and `PGPASSWORD` are used when taking a `snapshot-pgdump` backup, and when restoring backups.++For `snapshot-pgdump` backups, the host and port are resolved by the script. For restores, provide `PGHOST` and `PGPORT`.##### RCLONE_CONFIGdiff --git a/infra/copycat-db/copycat-db.sample.env b/infra/copycat-db/copycat-db.sample.envindex 0a54849609..5f5a9412b0 100644--- a/infra/copycat-db/copycat-db.sample.env+++ b/infra/copycat-db/copycat-db.sample.env@@ -4,5 +4,7 @@ SCW_RDB_INSTANCE_ID=SCW_PRIVATE_NETWORK_ID=PGUSER=PGPASSWORD=+PGHOST=host.docker.internal+PGPORT=RCLONE_CONFIG=/var/config/rclone/copycat-db-rclone.confRCLONE_DESTINATION=db-backup-crypt: