backup Public folder
This commit is contained in:
parent
eb865ecae2
commit
276e0365b5
|
@ -2,7 +2,7 @@
|
||||||
programs.ssh.enable = true;
|
programs.ssh.enable = true;
|
||||||
programs.ssh.matchBlocks =
|
programs.ssh.matchBlocks =
|
||||||
lib.mkMerge
|
lib.mkMerge
|
||||||
((lib.forEach ["hetzner-vm" "vault" "vault-decrypt" "buildbox"] (hostname: {
|
((lib.forEach ["hetzner-vm" "vault" "vault-decrypt"] (hostname: {
|
||||||
"${hostname}" = {
|
"${hostname}" = {
|
||||||
user = "root";
|
user = "root";
|
||||||
hostname = "${hostname}.servers.genderfucked.monster";
|
hostname = "${hostname}.servers.genderfucked.monster";
|
||||||
|
|
|
@ -35,6 +35,11 @@
|
||||||
dest = "B2-Chaos-Personal:";
|
dest = "B2-Chaos-Personal:";
|
||||||
id = "chaos_b2_personal";
|
id = "chaos_b2_personal";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
source = "StorageBox:Public";
|
||||||
|
dest = "B2-Chaos-Public:";
|
||||||
|
id = "chaos_b2_public";
|
||||||
|
}
|
||||||
# Pheonix System's B2
|
# Pheonix System's B2
|
||||||
{
|
{
|
||||||
source = "StorageBox:Backups";
|
source = "StorageBox:Backups";
|
||||||
|
@ -56,6 +61,11 @@
|
||||||
dest = "B2-Phoenix-Cryptidz-Storage:Personal";
|
dest = "B2-Phoenix-Cryptidz-Storage:Personal";
|
||||||
id = "phoenix_b2_personal";
|
id = "phoenix_b2_personal";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
source = "StorageBox:Public";
|
||||||
|
dest = "B2-Phoenix-Cryptidz-Storage:Public";
|
||||||
|
id = "phoenix_b2_public";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,16 @@ hard_delete = true
|
||||||
type = alias
|
type = alias
|
||||||
remote = B2-Chaos-Personal-Source:Chaos-Personal
|
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]
|
[B2-Phoenix-Cryptidz-Storage-Source]
|
||||||
type = b2
|
type = b2
|
||||||
account = B2_PHOENIX_CRYPTIDZ_STORAGE_ACCOUNT
|
account = B2_PHOENIX_CRYPTIDZ_STORAGE_ACCOUNT
|
||||||
|
|
|
@ -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-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-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-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
|
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)"
|
PUTIO_PASSWORD="token/$(simple_get /api-keys/putio .oauth_token)"
|
||||||
|
|
Loading…
Reference in a new issue