remove borg client and server

This commit is contained in:
Yan Lin 2025-12-05 22:55:34 +01:00
parent e40638b44b
commit dd888c98a0
3 changed files with 0 additions and 48 deletions

View file

@ -217,32 +217,6 @@
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 = {
exitNode = true;
subnetRoutes = [ "10.1.1.0/24" ];

View file

@ -244,14 +244,4 @@
showDiskUsage = true;
};
services.borg-server-custom = {
enable = true;
dataDir = "/srv/borg";
users = {
hs = {
publicKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac" ];
};
};
};
}

View file

@ -54,18 +54,6 @@
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";
};
};
};
}