secrets/backup-archive: update structure

This commit is contained in:
Gabriel Arazas 2023-01-12 15:18:06 +08:00
parent b237755736
commit c63ae20e35
2 changed files with 28 additions and 28 deletions

View File

@ -59,13 +59,13 @@ in
secrets;
in
getSecrets {
"borg-patterns/home" = { };
"borg-patterns/etc" = { };
"borg-patterns/keys" = { };
"borg-patterns/remote-backup" = { };
"borg-repos/archive/password" = { };
"borg-repos/external-drive/password" = { };
"borg-repos/hetzner-box/password" = { };
"patterns/home" = { };
"patterns/etc" = { };
"patterns/keys" = { };
"patterns/remote-backup" = { };
"repos/archive/password" = { };
"repos/external-drive/password" = { };
"repos/hetzner-box/password" = { };
"ssh-key" = { };
};
@ -78,11 +78,11 @@ in
local-archive = borgJobCommonSetting
{
patterns = with config.sops; [
secrets."borg-backup/borg-patterns/home".path
secrets."borg-backup/borg-patterns/etc".path
secrets."borg-backup/borg-patterns/keys".path
secrets."borg-backup/patterns/home".path
secrets."borg-backup/patterns/etc".path
secrets."borg-backup/patterns/keys".path
];
passCommand = "cat ${config.sops.secrets."borg-backup/borg-repos/archive/password".path}";
passCommand = "cat ${config.sops.secrets."borg-backup/repos/archive/password".path}";
} // {
removableDevice = true;
repo = "/mnt/archives/backups";
@ -92,11 +92,11 @@ in
local-external-drive = borgJobCommonSetting
{
patterns = with config.sops; [
secrets."borg-backup/borg-patterns/home".path
secrets."borg-backup/borg-patterns/etc".path
secrets."borg-backup/borg-patterns/keys".path
secrets."borg-backup/patterns/home".path
secrets."borg-backup/patterns/etc".path
secrets."borg-backup/patterns/keys".path
];
passCommand = "cat ${config.sops.secrets."borg-backup/borg-repos/external-drive/password".path}";
passCommand = "cat ${config.sops.secrets."borg-backup/repos/external-drive/password".path}";
} // {
removableDevice = true;
repo = "/mnt/external-storage/backups";
@ -106,9 +106,9 @@ in
remote-backup-hetzner-box = borgJobCommonSetting
{
patterns = with config.sops; [
secrets."borg-backup/borg-patterns/remote-backup".path
secrets."borg-backup/patterns/remote-backup".path
];
passCommand = "cat ${config.sops.secrets."borg-backup/borg-repos/hetzner-box/password".path}";
passCommand = "cat ${config.sops.secrets."borg-backup/repos/hetzner-box/password".path}";
} // {
doInit = true;
repo = "ssh://${hetzner-boxes-user}@${hetzner-boxes-server}:23/./borg/desktop/ni";

View File

@ -1,16 +1,16 @@
ssh-key: ENC[AES256_GCM,data:MDKZC4QMcfoXLtmTQYUXmz7vAFVKhcLACiQp3DzyeIle3FykNuvD/i5TLmqDclMHAcIfBb7yOCTPL/+hIvXRbU25btqWTc/i48RjYTvbpkVKQyyb7lBCmgeMHPoFNpSeu+NluelUpicQv2zOhIgG+LInQsDSy6uZuEnAEDh/MkCrch9G5DOQ1fGFcmRnpReKPNShkFaEnwiT0iYfQ/ksAvJlRS+szphWCcP6phwGWINETXyIQVekvnPp4pcioFtQ2sIZoLEkcOnhloNoSXs/hrqDaxgbEc7biITy+FCDU0M/qMVHiS8pE9Sb443MpmCSx84pm+kcgRpKPLqhhcf/PB0wLLGDvBD4Wv+0cmgGdKEKaZxvoTcYuCplvMKfRCzOGCDliBUGEy9gU/E8QCNNxC1OokhJFPs0b6YiHTAv+n+z48lRMojaKfmA5sRhiAh2mbiQerga8Tf3pEhtDW2myR3zrXYsJH2201F1j8O4TSQrXjvwC4ZeaIrzC1zYHXbTlNykdopv++M9U5BxRptBrAG5MgoQablsV3cH,iv:mIXPJIZ1z9xnoja+zQcHvVLLCWn3YMdVFKkhadbWCjY=,tag:Z/c2LB/mTaY8MzDfLjLrDQ==,type:str]
borg-repos:
repos:
archive:
password: ENC[AES256_GCM,data:XCWvZIYgxUYApn2hni7gtPkOiiv6Fc5WAyBjIhIbboGP1TPJ,iv:FfWqVC9KpDa+XBXFWgvzJDZL2gqAYPHtUT6mROheU68=,tag:xGE2zyYKMFO8x6aJELLAgw==,type:str]
password: ENC[AES256_GCM,data:SDeOjiMuHRNbUIozozzt2gPv1hA4fnhk1WPd9v2Hoj7FQd8G,iv:4EjrKKvFScYf5qc+ild3xxNOj7ueNQZFJRCtXk2PNMk=,tag:gaxzCzs/ZnSHTPwAos4Yow==,type:str]
external-drive:
password: ENC[AES256_GCM,data:5qbA4HRzStX0rJ4fQv9KwfenUeE5PbKoIT3wCZ87M4YzVbQ+,iv:Odrgkb9FAZOOHU3R2CVRf7UdkqmGpZgCoz3ci/lgKjg=,tag:hyRu0OwlmM6nroqq0Yjj0A==,type:str]
password: ENC[AES256_GCM,data:BjL6PhkA9GYdSQEyHIrt00vA1JY9kLIqjHC6R2mUPuupbt1E,iv:37l5GTCxLPo3hOENHxZEH5CjcL6lP8sf5BoLA3YMXqM=,tag:LaMsCfaV4eVF0KBKnVlwlA==,type:str]
hetzner-box:
password: ENC[AES256_GCM,data:me5czGtTEoiIr1qKh+GpNTLBRhG+3BVyj87t,iv:4ew7vTK38xEGXPIPm9I2BxsFwMqRHGJ5mtpN91Cfghg=,tag:HbI8jxQNbUz37L8H3T56+Q==,type:str]
borg-patterns:
home: ENC[AES256_GCM,data:NXW0QN4sFTmbPB08Ww4J3pzn5RrOroqD2l/EyK3cHNcT9P6nz32j6nB3Qzx0Ik1CfuVFt38xQV/yUGkszCdj8GcLoOHi4Bu6xgBCmPqmNh8CaDg9jRdVBxUpf3UVfTJx9oVw0IL1qN2Rk28OqKqGhrxHQCMqzICRKrNaobTV0tOJq50B/8Hz5DzuBKO7fpf2VyNIqkM5B2VCKvYALgB7cpnq//Oz6BNsMiQe429axOcRWOyxSl/RSpCAmF74vCT9SRRB1Stb0xH0aiXxm5HXmSuQBjjERSfdFmlGsyaSD/9OscNA0amwHOmmeg7CuD+5cPaxgUlbDEgMwsXwyThKVw9LHWh5DPrjV627UZyJNVVYnTmApIW9DDJqX7rkP8pGRsoQZV/Fc2tQ5uSmDE4dOxxDh/60as8FVfR4+lhURhfAfZuuSrVd84SJFWvdYNRgqtYO2s2NER4/Syj/7/qCBsujpRTidIzjSaECSDAqwjL0JVNyIwAyaqvK4jDQHiK9aZ5Zv9Xu/7cfRVaEnHoe0/Dy/ZRVpZlELC7PlbpFHEY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FQAZ,iv:G4Zl4Y9abR39e8Tp3tHAeZ/RV0nXo27ETco+st+VqWc=,tag:hePvY0fhy17fxcWRohUiqw==,type:str]
keys: ENC[AES256_GCM,data:daVoQqMYwhyRZsZoTKcuhy19PQajLwebVbi8SnzsXPGZH2HNweLgUXuILevUw2Pi30Wc0cJkPlf9HlmN7MGk9iN/H3bO99GK8/ixDb1JmkQyIEg5FjCZ4OgfIw9TuAQyINnG6IMZVzjPPkqGdtjIssPp7BT03heQjgxP9gYUMqZ9jMk1UNesJ+MkSDkkrj9FZsO8aAnz7dOTCZpnaWGU/10UjEciegyl08rhCKgfRe9/RY3wCu8psxlqAcfkWEm4ZLy6/D5ph2jJhJ4uybrUyvtZ8t4joFYRvokQrUlMFsxVT2g=,iv:fF1ns69AO860KnX3MibQsV/fhzxeH8FHLEG8JNjLbW0=,tag:R1w/WiNtoLaPrsNws9C8RQ==,type:str]
remote-backup: ENC[AES256_GCM,data:Chpey91zFfH60fzcjOc1jKrC2j7XYWNezi109Na606ob6VkLncEw2lmD6EJJVXSn8Uru7lhKWaQZwS7JodEPutlut4ZKo2AVcYh6YAhJXPcktiX+zS/4MIpwfDZztW7q5YCdavhFpzraBNLHFbyZf7SpBOMO1MbGiPv/pSlX8a32jsBSY04DK+3m0CtYVjI/gamJHhTn1MnvYMPnCgytA0Uj9mPyh7u+1C94MWpmPAuxdib506TkwGGsdpBLV5396u7g7j3rULGYOlUnkGPW99b4dj3V6YoACI4Ej8GPCQWi4Zd5TNfWlkfrdokzPA0xGRJK9Tiw+dbJ3ww91PB3mN39TahGSQHRteUKrOBFRH2MC+BTnB/T5aOJTDfRWOkLHtcT6GHKh3/0ayjoE/lQWnlpM6FBFlnGunCxd7HYN/8dU5Xv/mMGBn8w8E5/wl48rpljeto4616aNlBQNVxt9mdop6aJebul60upbam1vgAX5kN9IBbfT+nLDhRNlO6KMUvkzOtQzKAVUiTbuida+X7z8YNi3uiXYma7ZBgp96+CZ8U4zGzMC/6FoMICDi523SgFGs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rx2Bc=,tag:HMMOuEnP2DFEmMc5cDEIiQ==,type:str]
sops:
kms: []
gcp_kms: []
@ -35,8 +35,8 @@ sops:
QUlyNHBlNDV6eVJXc3VWNzJSaThIQUEKCdNxZCCNISWll5uaCcDQBA2ir7oLpHco
+7ypF6lcOalqjvzc5DTXTt/v6QVs0f7SCZmNJFBMpZm8M2B+7O1h7A==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-01-11T04:39:58Z"
mac: ENC[AES256_GCM,data:QUg/3MW3a7vlunhj1sTCzY2L5vLjOY9ZhTSwVujHCrN3SMcQWgyOK+m5vbdjqNwezyLKmTg8av6nTAqHwSZIKyJZLfkxKFSIzizR0IJEkf4bYrCXeQ6z/M7EaTtMbfXOEk2eNpqFuPjpErJL4vHz0e5ZYtdKvLDLUK2XvWZRKXg=,iv:1x6fim8dxMAAfmCVN7UpjqudHUpxUE3YQQLABccnXA4=,tag:Se707Qcr6ON68ymdVbLXpg==,type:str]
lastmodified: "2023-01-12T04:49:13Z"
mac: ENC[AES256_GCM,data:7b+b5RHO59kJgC896pMpXip29zcYRG0AsD3MBw+XiKuYelLcUMbOTt9RfKh06NFzachJtuCDDsiK4y1nGQY2cP2K5rY0U+SmV1nLJh7/x7VbmViRajtJpZ+YhnB54oPf8D+O1K8ukMT/wJFOA5q1pm7TLcd3F6HmyvzClaF4GFI=,iv:FC2q+hEgou8DinMhJOQy1AYZZ1bKSGDrdybkQ5na7vU=,tag:Uq03nhaHHwUFAbQJrlQXwA==,type:str]
pgp:
- created_at: "2022-07-18T13:19:32Z"
enc: |