diff --git a/restic/.config/resticprofile/profiles.yaml b/restic/.config/resticprofile/profiles.yaml index f7eb038..7f2f655 100644 --- a/restic/.config/resticprofile/profiles.yaml +++ b/restic/.config/resticprofile/profiles.yaml @@ -1,9 +1,13 @@ groups: all: - projects + - projects-local - vaults + - vaults-local - files + - files-local - pictures + - pictures-local schedule: "0 * * * *" projects: @@ -23,6 +27,23 @@ projects: - "**/.venv" - "**/target" +# Локальное зеркало projects +projects-local: + repository: "rclone:home-file:files/System/Backups/ada-x1/Documents/Projects" + password-file: "/home/ada/.config/resticprofile/pass.txt" + backup: + source: + - /home/ada/Documents/Projects + forget: + keep-last: 24 + keep-daily: 14 + keep-monthly: 3 + exclude: + - "**/.git" + - "**/node_modules" + - "**/.venv" + - "**/target" + # Важные данные vaults: repository: "rclone:yadisk:System/Backups/ada-x1/Documents/Vaults" @@ -36,6 +57,18 @@ vaults: keep-daily: 7 keep-monthly: 12 +# Локальное зеркало vaults +vaults-local: + repository: "rclone:home-file:files/System/Backups/ada-x1/Documents/Vaults" + password-file: "/home/ada/.config/resticprofile/pass.txt" + backup: + source: + - /home/ada/Documents/Vaults + forget: + keep-last: 12 + keep-daily: 7 + keep-monthly: 12 + # Документы files: repository: "rclone:yadisk:System/Backups/ada-x1/Documents/Files" @@ -49,6 +82,18 @@ files: keep-weekly: 12 keep-yearly: 1 +# Локальное зеркало files +files-local: + repository: "rclone:home-file:files/System/Backups/ada-x1/Documents/Files" + password-file: "/home/ada/.config/resticprofile/pass.txt" + backup: + source: + - /home/ada/Documents/Files + forget: + keep-daily: 30 + keep-weekly: 12 + keep-yearly: 1 + # Фотографии и видео pictures: repository: "rclone:yadisk:System/Backups/ada-x1/Pictures" @@ -62,3 +107,16 @@ pictures: keep-weekly: 8 keep-monthly: 12 keep-yearly: 2 + +# Локальное зеркало pictures +pictures-local: + repository: "rclone:home-file:files/System/Backups/ada-x1/Pictures" + password-file: "/home/ada/.config/resticprofile/pass.txt" + backup: + source: + - /home/ada/Pictures + forget: + keep-daily: 14 + keep-weekly: 8 + keep-monthly: 12 + keep-yearly: 2 diff --git a/ssh/.ssh/config.d/20-selfhost.conf b/ssh/.ssh/config.d/20-selfhost.conf index d39f062..215b72f 100644 --- a/ssh/.ssh/config.d/20-selfhost.conf +++ b/ssh/.ssh/config.d/20-selfhost.conf @@ -1,7 +1,7 @@ # 20 - SelfHost Host vps vps-ada HostName 157.22.231.198 - Port 22 + Port 3422 User ada IdentityFile ~/.ssh/keys/homelab_ssh.pub diff --git a/ssh/.ssh/config.d/40-proxy.conf b/ssh/.ssh/config.d/40-proxy.conf index 4215fcb..0af9b1d 100644 --- a/ssh/.ssh/config.d/40-proxy.conf +++ b/ssh/.ssh/config.d/40-proxy.conf @@ -3,12 +3,13 @@ Host ru-vps User ada ServerAliveInterval 30 ServerAliveCountMax 3 + IdentityFile /home/ada/.dotfiles/ssh/.ssh/keys/homelab_ssh.pub Host fl-vps HostName 89.167.32.245 Port 4322 User ada - IdentityFile ~/.ssh/keys/fl-vpn.pub + IdentityFile /home/ada/.dotfiles/ssh/.ssh/keys/fl-vpn.pub ProxyJump ru-vps ServerAliveInterval 30 ServerAliveCountMax 3