setup thinkpad borg server
This commit is contained in:
parent
a4d208591b
commit
6821e1e3a5
3 changed files with 18 additions and 8 deletions
|
|
@ -144,9 +144,10 @@
|
|||
|
||||
# Borg backup configuration
|
||||
services.borg-client-custom = {
|
||||
enable = false;
|
||||
repositoryUrl = "ssh://borg-box/./nfss";
|
||||
enable = true;
|
||||
repositoryUrl = "ssh://nfss@thinkpad/./";
|
||||
backupPaths = [
|
||||
"/mnt/essd/DCIM"
|
||||
];
|
||||
backupFrequency = "*-*-* 01:00:00";
|
||||
retention = {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
../../../modules/podman.nix
|
||||
../../../modules/vpn/tailscale.nix
|
||||
../../../modules/borg/client.nix
|
||||
../../../modules/borg/server.nix
|
||||
];
|
||||
|
||||
# Bootloader - standard UEFI setup
|
||||
|
|
@ -190,14 +191,22 @@
|
|||
|
||||
services.tailscale-custom.exitNode = true;
|
||||
|
||||
services.borg-client-custom = {
|
||||
services.borg-server-custom = {
|
||||
enable = true;
|
||||
users = {
|
||||
nfss.publicKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac"
|
||||
];
|
||||
vps.publicKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.borg-client-custom = {
|
||||
enable = false;
|
||||
repositoryUrl = "ssh://borg-box/./thinkpad";
|
||||
backupPaths = [
|
||||
"/home/yanlin/Archive"
|
||||
"/home/yanlin/Credentials"
|
||||
"/home/yanlin/Documents"
|
||||
"/home/yanlin/Media"
|
||||
];
|
||||
backupFrequency = "*-*-* 00:00:00";
|
||||
retention = {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
# Borg backup configuration
|
||||
services.borg-client-custom = {
|
||||
enable = true;
|
||||
repositoryUrl = "ssh://borg-box/./vps";
|
||||
repositoryUrl = "ssh://vps@thinkpad/./";
|
||||
backupPaths = [
|
||||
"/var/lib/mongodb"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue