nix-config/home/essentials/restic.nix

34 lines
708 B
Nix

{ ... }:
{
services.restic = {
enable = true;
backups = {
localbackup = {
exclude = [
"/home/$USER/.cache"
"/home/$USER/.local/share/libvirt"
"/home/$USER/.local/share/Steam"
"/home/$USER/.local/share/Trash"
"/home/$USER/Android"
".venv"
"venv"
".direnv"
".git"
];
initialize = true;
paths = [
"/home"
];
extraBackupArgs = [
"--one-file-system"
];
repository = "s3:https://s3.filmsli.de/restic-framework";
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 4"
];
};
};
};
}