Implented Google Cloud Backups of the databases, and also encrypying them before being pushed to cloud. Let us hope that I didn't heck it up.
This commit is contained in:
parent
458d0d865a
commit
20e27f799c
7 changed files with 193 additions and 7 deletions
|
|
@ -25,4 +25,19 @@
|
|||
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
# This will generate a new key if the key specified above does not exist
|
||||
sops.age.generateKey = true;
|
||||
# Secrets key stuff
|
||||
sops.secrets."backup_gpg_key" = {
|
||||
format = "yaml";
|
||||
sopsFile = ../../secrets/database/secrets.yaml;
|
||||
owner = "root";
|
||||
mode = "0400";
|
||||
};
|
||||
|
||||
# Declare the GCS service account secret
|
||||
sops.secrets."gcloud_bucket" = {
|
||||
format = "json";
|
||||
sopsFile = ../../secrets/database/gcloud_bucket.json;
|
||||
owner = "root";
|
||||
mode = "0400";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue