add a module for restic
This commit is contained in:
parent
dc2fca00d4
commit
623ae08893
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
|
||||
};
|
||||
}
|
|
@ -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
|
2
secrets
2
secrets
|
@ -1 +1 @@
|
|||
Subproject commit 6cef8e169e15b66854b176d7ab35836647d31f70
|
||||
Subproject commit 21748e8f5deab52ebf2ea302df423151ca95939a
|
Loading…
Reference in New Issue