change borg target to thinkpad

This commit is contained in:
Yan Lin 2025-12-11 01:04:25 +01:00
parent b0e15981eb
commit c455253fa9
3 changed files with 13 additions and 16 deletions

View file

@ -253,7 +253,7 @@
# Borg backup configuration # Borg backup configuration
services.borg-client-custom = { services.borg-client-custom = {
enable = true; enable = true;
repositoryUrl = "ssh://backup-box/./hs"; repositoryUrl = "ssh://borg-server/./hs";
backupPaths = [ backupPaths = [
"/mnt/storage/appbulk/immich/library/" "/mnt/storage/appbulk/immich/library/"
"/mnt/storage/Media/DCIM" "/mnt/storage/Media/DCIM"

View file

@ -6,7 +6,7 @@
../system-default.nix ../system-default.nix
../../../modules/tailscale.nix ../../../modules/tailscale.nix
../../../modules/login-display.nix ../../../modules/login-display.nix
../../../modules/borg/client.nix ../../../modules/borg/server.nix
]; ];
# Bootloader - standard UEFI setup # Bootloader - standard UEFI setup
@ -191,21 +191,12 @@
showBorgStatus = true; showBorgStatus = true;
}; };
# Borg backup configuration services.borg-server-custom = {
services.borg-client-custom = {
enable = true; enable = true;
repositoryUrl = "ssh://backup-box/./thinkpad"; users = {
backupPaths = [ borg = {
"/home/yanlin/Archive" publicKeys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac";
"/home/yanlin/Credentials" };
"/home/yanlin/Documents"
];
backupFrequency = "*-*-* 00:00:00";
retention = {
keepDaily = 7;
keepWeekly = 4;
keepMonthly = 6;
keepYearly = 2;
}; };
}; };

View file

@ -61,6 +61,12 @@
port = 23; port = 23;
}; };
"borg-server" = {
hostname = "vpn.thinkpad.yanlincs.com";
user = "borg";
identityFile = "~/Credentials/ssh_keys/thinkpad";
};
}; };
}; };
} }