change srv backup local repo to new drive
This commit is contained in:
parent
85fc9790c0
commit
12892f3ffb
1 changed files with 4 additions and 7 deletions
|
|
@ -66,13 +66,10 @@ in
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
onsite = srv "onsite" // {
|
onsite = srv "onsite" // {
|
||||||
repo = "/repo";
|
repo = "/backup/repo";
|
||||||
exclude = [ "/srv/immich" ];
|
|
||||||
|
|
||||||
encryption.mode = "repokey-blake2";
|
encryption.mode = "repokey-blake2";
|
||||||
encryption.passCommand = "cat ${config.age.secrets.borgbackup-server-onsite.path}";
|
encryption.passCommand = "cat ${config.age.secrets.borgbackup-server-onsite.path}";
|
||||||
|
|
||||||
removableDevice = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
offsite = srv "offsite" // {
|
offsite = srv "offsite" // {
|
||||||
|
|
@ -88,9 +85,9 @@ in
|
||||||
# onsite drive
|
# onsite drive
|
||||||
services.udisks2.enable = true;
|
services.udisks2.enable = true;
|
||||||
|
|
||||||
fileSystems."/repo" = {
|
fileSystems."/backup" = {
|
||||||
device = "/dev/sdb1";
|
device = "/dev/disk/by-uuid/d3b3d7dc-d634-4327-9ea2-9d8daa4ecf4e";
|
||||||
fsType = "vfat";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
# secrets
|
# secrets
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue