remove borg client and server
This commit is contained in:
parent
e40638b44b
commit
dd888c98a0
3 changed files with 0 additions and 48 deletions
|
|
@ -217,32 +217,6 @@
|
||||||
showBorgStatus = true;
|
showBorgStatus = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Borg backup configuration
|
|
||||||
services.borg-client-custom = {
|
|
||||||
enable = true;
|
|
||||||
repositoryUrl = "ssh://hs@borg-thinkpad/./hs";
|
|
||||||
backupPaths = [
|
|
||||||
"/mnt/storage/appbulk/immich/library/"
|
|
||||||
"/mnt/storage/Media/DCIM"
|
|
||||||
"/mnt/storage/Media/nsfw"
|
|
||||||
];
|
|
||||||
backupFrequency = "*-*-* 00:00:00";
|
|
||||||
retention = {
|
|
||||||
keepDaily = 7;
|
|
||||||
keepWeekly = 4;
|
|
||||||
keepMonthly = 6;
|
|
||||||
keepYearly = 2;
|
|
||||||
};
|
|
||||||
passphraseFile = "/etc/borg-passphrase";
|
|
||||||
|
|
||||||
preHook = ''
|
|
||||||
echo "$(date): Starting Borg backup of ${config.networking.hostName}"
|
|
||||||
'';
|
|
||||||
postHook = ''
|
|
||||||
echo "$(date): Borg backup of ${config.networking.hostName} completed successfully"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.tailscale-custom = {
|
services.tailscale-custom = {
|
||||||
exitNode = true;
|
exitNode = true;
|
||||||
subnetRoutes = [ "10.1.1.0/24" ];
|
subnetRoutes = [ "10.1.1.0/24" ];
|
||||||
|
|
|
||||||
|
|
@ -244,14 +244,4 @@
|
||||||
showDiskUsage = true;
|
showDiskUsage = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.borg-server-custom = {
|
|
||||||
enable = true;
|
|
||||||
dataDir = "/srv/borg";
|
|
||||||
users = {
|
|
||||||
hs = {
|
|
||||||
publicKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,18 +54,6 @@
|
||||||
identityFile = "~/Credentials/ssh_keys/hetzner";
|
identityFile = "~/Credentials/ssh_keys/hetzner";
|
||||||
};
|
};
|
||||||
|
|
||||||
"borg-box" = {
|
|
||||||
hostname = "u501367.your-storagebox.de";
|
|
||||||
user = "u501367";
|
|
||||||
port = 23;
|
|
||||||
identityFile = "~/Credentials/ssh_keys/hetzner";
|
|
||||||
};
|
|
||||||
|
|
||||||
"borg-thinkpad" = {
|
|
||||||
hostname = "vpn.thinkpad.yanlincs.com";
|
|
||||||
identityFile = "~/Credentials/ssh_keys/thinkpad";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue