add a module for restic

This commit is contained in:
Andreas Zweili 2021-11-28 12:00:58 +01:00
parent dc2fca00d4
commit 623ae08893
4 changed files with 35 additions and 1 deletions

View File

@ -8,6 +8,7 @@
imports = [
./common.nix
./docker.nix
./restic
../home-manager/desktop/services/keeweb.nix
../home-manager/desktop/services/telegram-desktop.nix
../home-manager/desktop/services/signal-desktop.nix

14
common/restic/default.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
services.restic.backups."andreas" = {
user = "andreas";
repository = "sftp:borg@10.7.89.117:restic";
timerConfig.OnCalendar = "hourly";
passwordFile = "/home/andreas/git_repos/nixos/secrets/passwords/restic.key";
paths = [ "/home/andreas/" ];
extraBackupArgs = [
"--exclude-file=/home/andreas/git_repos/nixos/common/restic/excludes.txt"
];
};
}

View File

@ -0,0 +1,19 @@
/home/*/.gvfs
/home/*/.cache
/home/*/.thumbnails
/home/*/.dropbox
/home/*/.steam
home/*/.local/share/Steam/
/home/*/snap
/proc
/sys
/dev
/etc/mtab
/var/cache
lost+found
/tmp
/var/tmp
__pycache__
/home/*/.local/share/Trash
/home/*/programmes/tor-browser_en-US
/home/*/Downloads

@ -1 +1 @@
Subproject commit 6cef8e169e15b66854b176d7ab35836647d31f70
Subproject commit 21748e8f5deab52ebf2ea302df423151ca95939a