From 38ef0e8afbf10f80afe9eb43da345174bd9a8ff9 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 26 Jan 2026 19:04:21 -0800 Subject: a single repo for all my backups --- home/programs/restic.nix | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'home/programs') diff --git a/home/programs/restic.nix b/home/programs/restic.nix index 582384f..da13e5e 100644 --- a/home/programs/restic.nix +++ b/home/programs/restic.nix @@ -6,13 +6,12 @@ }: let nasHost = "nas"; - repoPath = "/backups/workstation"; + repoPath = "/backups/framebox"; - resticRepository = "sftp:${nasHost}:${repoPath}"; + resticRepository = "sftp:nas@${nasHost}:${repoPath}"; backupPaths = [ "${config.home.homeDirectory}/Documents" - "${config.home.homeDirectory}/Pictures" ]; excludeFile = "${config.home.homeDirectory}/.config/restic/exclude"; @@ -47,33 +46,6 @@ in .LSOverride Library/Caches Library/Logs - - # Development artifacts - **/node_modules - **/.venv - **/__pycache__ - **/*.pyc - **/venv - **/target # Rust - **/dist - **/build - **/.tox - **/.pytest_cache - **/.coverage - **/.mypy_cache - - # Large files that might not need backup - *.dmg - *.iso - *.pkg - - # Version control - **/.git/objects - **/.git/lfs - - # IDE - **/.idea - **/.vscode *.swp *~ ''; @@ -123,10 +95,6 @@ in --compression max \ --verbose=1 - # Check repository integrity (optional, can be slow) - echo -e "''${GREEN}Checking repository integrity...''${NC}" - ${pkgs.restic}/bin/restic check --read-data-subset=5% - echo -e "''${GREEN}Backup completed successfully!''${NC}" ''; }; -- cgit v1.2.3