backup Public folder

This commit is contained in:
Chaos 2023-07-29 19:35:27 +00:00
parent eb865ecae2
commit 276e0365b5
No known key found for this signature in database
4 changed files with 22 additions and 1 deletions

View file

@ -2,7 +2,7 @@
programs.ssh.enable = true;
programs.ssh.matchBlocks =
lib.mkMerge
((lib.forEach ["hetzner-vm" "vault" "vault-decrypt" "buildbox"] (hostname: {
((lib.forEach ["hetzner-vm" "vault" "vault-decrypt"] (hostname: {
"${hostname}" = {
user = "root";
hostname = "${hostname}.servers.genderfucked.monster";

View file

@ -35,6 +35,11 @@
dest = "B2-Chaos-Personal:";
id = "chaos_b2_personal";
}
{
source = "StorageBox:Public";
dest = "B2-Chaos-Public:";
id = "chaos_b2_public";
}
# Pheonix System's B2
{
source = "StorageBox:Backups";
@ -56,6 +61,11 @@
dest = "B2-Phoenix-Cryptidz-Storage:Personal";
id = "phoenix_b2_personal";
}
{
source = "StorageBox:Public";
dest = "B2-Phoenix-Cryptidz-Storage:Public";
id = "phoenix_b2_public";
}
];
};
}

View file

@ -56,6 +56,16 @@ hard_delete = true
type = alias
remote = B2-Chaos-Personal-Source:Chaos-Personal
[B2-Chaos-Public-Source]
type = b2
account = B2_CHAOS_PUBLIC_ACCOUNT
key = B2_CHAOS_PUBLIC_KEY
hard_delete = true
[B2-Chaos-Public]
type = alias
remote = B2-Chaos-Public-Source:Chaos-Public
[B2-Phoenix-Cryptidz-Storage-Source]
type = b2
account = B2_PHOENIX_CRYPTIDZ_STORAGE_ACCOUNT

View file

@ -125,6 +125,7 @@
simple_get_replace_b2 "/api-keys/backblaze/Chaos-Photos" "B2_CHAOS_PHOTOS" ./template
simple_get_replace_b2 "/api-keys/backblaze/Chaos-Music" "B2_CHAOS_MUSIC" ./template
simple_get_replace_b2 "/api-keys/backblaze/Chaos-Personal" "B2_CHAOS_PERSONAL" ./template
simple_get_replace_b2 "/api-keys/backblaze/Chaos-Public" "B2_CHAOS_PUBLIC" ./template
simple_get_replace_b2 "/api-keys/backblaze/Phoenix-Cryptidz-Storage" "B2_PHOENIX_CRYPTIDZ_STORAGE" ./template
PUTIO_PASSWORD="token/$(simple_get /api-keys/putio .oauth_token)"