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;
|
||||
};
|
||||
|
||||
# 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" ];
|
||||
|
|
|
|||
|
|
@ -244,14 +244,4 @@
|
|||
showDiskUsage = true;
|
||||
};
|
||||
|
||||
services.borg-server-custom = {
|
||||
enable = true;
|
||||
dataDir = "/srv/borg";
|
||||
users = {
|
||||
hs = {
|
||||
publicKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue