aboutsummaryrefslogtreecommitdiff
path: root/home/programs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2026-01-26 19:04:21 -0800
committerFranck Cuny <franck@fcuny.net>2026-01-26 19:04:21 -0800
commit38ef0e8afbf10f80afe9eb43da345174bd9a8ff9 (patch)
tree3d86a05872ae0f4b467b8d69641e8a69a48a980e /home/programs
parentadd more hosts to ssh known hosts (diff)
downloadinfra-38ef0e8afbf10f80afe9eb43da345174bd9a8ff9.tar.gz
a single repo for all my backupsHEADmain
Diffstat (limited to '')
-rw-r--r--home/programs/restic.nix36
1 files changed, 2 insertions, 34 deletions
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}"
'';
};