System/Nixinator: Reenable restic backup with NFS "hard"
This commit is contained in:
@ -132,59 +132,61 @@
|
|||||||
|
|
||||||
# Keep this as a system service because we're backing up /persist as root
|
# Keep this as a system service because we're backing up /persist as root
|
||||||
# TODO: The repository gets corrupted all the time, maybe because the service runs before the repository is mounted?
|
# TODO: The repository gets corrupted all the time, maybe because the service runs before the repository is mounted?
|
||||||
# restic.backups."synology" = {
|
# - Was this caused by the NFS "soft" option?
|
||||||
# # user = "${username}"; # Keep default (root), so restic can read everything
|
# - Might this be caused by the restic service being interrupted by shutdown/rebooting?
|
||||||
#
|
restic.backups."synology" = {
|
||||||
# repository = "/home/${username}/Restic";
|
# user = "${username}"; # Keep default (root), so restic can read everything
|
||||||
# initialize = true;
|
|
||||||
# passwordFile = config.sops.secrets.restic-repo-key.path;
|
repository = "/home/${username}/Restic";
|
||||||
# createWrapper = true;
|
initialize = true;
|
||||||
#
|
passwordFile = config.sops.secrets.restic-repo-key.path;
|
||||||
# timerConfig = {
|
createWrapper = true;
|
||||||
# OnCalendar = "daily";
|
|
||||||
# Persistent = true;
|
timerConfig = {
|
||||||
# RandomizedDelaySec = "5h";
|
OnCalendar = "daily";
|
||||||
# };
|
Persistent = true;
|
||||||
#
|
RandomizedDelaySec = "5h";
|
||||||
# runCheck = true;
|
};
|
||||||
# checkOpts = [
|
|
||||||
# "--with-cache"
|
runCheck = true;
|
||||||
# ];
|
checkOpts = [
|
||||||
#
|
"--with-cache"
|
||||||
# pruneOpts = [
|
];
|
||||||
# "--keep-daily 3"
|
|
||||||
# "--keep-weekly 2"
|
pruneOpts = [
|
||||||
# # "--keep-monthly 0"
|
"--keep-daily 3"
|
||||||
# # "--keep-yearly 0"
|
"--keep-weekly 2"
|
||||||
#
|
# "--keep-monthly 0"
|
||||||
# "--prune" # Automatically remove dangling files not referenced by any snapshot
|
# "--keep-yearly 0"
|
||||||
# "--repack-uncompressed"
|
|
||||||
# ];
|
"--prune" # Automatically remove dangling files not referenced by any snapshot
|
||||||
#
|
"--repack-uncompressed"
|
||||||
# paths = ["/persist"];
|
];
|
||||||
# exclude = [
|
|
||||||
# # The backup is just supposed to allow a system restore
|
paths = ["/persist"];
|
||||||
# "/persist/old_homes"
|
exclude = [
|
||||||
# "/persist/old_roots"
|
# The backup is just supposed to allow a system restore
|
||||||
#
|
"/persist/old_homes"
|
||||||
# # Those are synced by nextcloud, no need to backup them 50 times
|
"/persist/old_roots"
|
||||||
# "/persist/home/${username}/Documents"
|
|
||||||
# "/persist/home/${username}/NixFlake"
|
# Those are synced by nextcloud, no need to backup them 50 times
|
||||||
# "/persist/home/${username}/Notes"
|
"/persist/home/${username}/Documents"
|
||||||
# "/persist/home/${username}/Projects"
|
"/persist/home/${username}/NixFlake"
|
||||||
# "/persist/home/${username}/Public"
|
"/persist/home/${username}/Notes"
|
||||||
#
|
"/persist/home/${username}/Projects"
|
||||||
# # Some more caches
|
"/persist/home/${username}/Public"
|
||||||
# ".cache"
|
|
||||||
# "cache2" # firefox
|
# Some more caches
|
||||||
# "Cache"
|
".cache"
|
||||||
# ];
|
"cache2" # firefox
|
||||||
# extraBackupArgs = [
|
"Cache"
|
||||||
# "--exclude-caches" # Excludes marked cache directories
|
];
|
||||||
# "--one-file-system" # Only stay on /persist (in case symlinks lead elsewhere)
|
extraBackupArgs = [
|
||||||
# "--cleanup-cache" # Auto remove old cache directories
|
"--exclude-caches" # Excludes marked cache directories
|
||||||
# ];
|
"--one-file-system" # Only stay on /persist (in case symlinks lead elsewhere)
|
||||||
# };
|
"--cleanup-cache" # Auto remove old cache directories
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
|
|||||||
Reference in New Issue
Block a user