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
|
# Borg backup configuration
|
||||||
services.borg-client-custom = {
|
services.borg-client-custom = {
|
||||||
enable = false;
|
enable = true;
|
||||||
repositoryUrl = "ssh://borg-box/./nfss";
|
repositoryUrl = "ssh://nfss@thinkpad/./";
|
||||||
backupPaths = [
|
backupPaths = [
|
||||||
|
"/mnt/essd/DCIM"
|
||||||
];
|
];
|
||||||
backupFrequency = "*-*-* 01:00:00";
|
backupFrequency = "*-*-* 01:00:00";
|
||||||
retention = {
|
retention = {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
../../../modules/podman.nix
|
../../../modules/podman.nix
|
||||||
../../../modules/vpn/tailscale.nix
|
../../../modules/vpn/tailscale.nix
|
||||||
../../../modules/borg/client.nix
|
../../../modules/borg/client.nix
|
||||||
|
../../../modules/borg/server.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader - standard UEFI setup
|
# Bootloader - standard UEFI setup
|
||||||
|
|
@ -190,14 +191,22 @@
|
||||||
|
|
||||||
services.tailscale-custom.exitNode = true;
|
services.tailscale-custom.exitNode = true;
|
||||||
|
|
||||||
services.borg-client-custom = {
|
services.borg-server-custom = {
|
||||||
enable = true;
|
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";
|
repositoryUrl = "ssh://borg-box/./thinkpad";
|
||||||
backupPaths = [
|
backupPaths = [
|
||||||
"/home/yanlin/Archive"
|
|
||||||
"/home/yanlin/Credentials"
|
|
||||||
"/home/yanlin/Documents"
|
|
||||||
"/home/yanlin/Media"
|
|
||||||
];
|
];
|
||||||
backupFrequency = "*-*-* 00:00:00";
|
backupFrequency = "*-*-* 00:00:00";
|
||||||
retention = {
|
retention = {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
# Borg backup configuration
|
# Borg backup configuration
|
||||||
services.borg-client-custom = {
|
services.borg-client-custom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
repositoryUrl = "ssh://borg-box/./vps";
|
repositoryUrl = "ssh://vps@thinkpad/./";
|
||||||
backupPaths = [
|
backupPaths = [
|
||||||
"/var/lib/mongodb"
|
"/var/lib/mongodb"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue