System/Nixinator: Disable restic until I figure out why the repo breaks all the time
This commit is contained in:
@ -132,59 +132,59 @@
|
|||||||
|
|
||||||
# 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" = {
|
# restic.backups."synology" = {
|
||||||
# user = "${username}"; # Keep default (root), so restic can read everything
|
# # user = "${username}"; # Keep default (root), so restic can read everything
|
||||||
|
#
|
||||||
repository = "/home/${username}/Restic";
|
# repository = "/home/${username}/Restic";
|
||||||
initialize = true;
|
# initialize = true;
|
||||||
passwordFile = config.sops.secrets.restic-repo-key.path;
|
# passwordFile = config.sops.secrets.restic-repo-key.path;
|
||||||
createWrapper = true;
|
# createWrapper = true;
|
||||||
|
#
|
||||||
timerConfig = {
|
# timerConfig = {
|
||||||
OnCalendar = "daily";
|
# OnCalendar = "daily";
|
||||||
Persistent = true;
|
# Persistent = true;
|
||||||
RandomizedDelaySec = "5h";
|
# RandomizedDelaySec = "5h";
|
||||||
};
|
# };
|
||||||
|
#
|
||||||
runCheck = true;
|
# runCheck = true;
|
||||||
checkOpts = [
|
# checkOpts = [
|
||||||
"--with-cache"
|
# "--with-cache"
|
||||||
];
|
# ];
|
||||||
|
#
|
||||||
pruneOpts = [
|
# pruneOpts = [
|
||||||
"--keep-daily 3"
|
# "--keep-daily 3"
|
||||||
"--keep-weekly 2"
|
# "--keep-weekly 2"
|
||||||
# "--keep-monthly 0"
|
# # "--keep-monthly 0"
|
||||||
# "--keep-yearly 0"
|
# # "--keep-yearly 0"
|
||||||
|
#
|
||||||
"--prune" # Automatically remove dangling files not referenced by any snapshot
|
# "--prune" # Automatically remove dangling files not referenced by any snapshot
|
||||||
"--repack-uncompressed"
|
# "--repack-uncompressed"
|
||||||
];
|
# ];
|
||||||
|
#
|
||||||
paths = ["/persist"];
|
# paths = ["/persist"];
|
||||||
exclude = [
|
# exclude = [
|
||||||
# The backup is just supposed to allow a system restore
|
# # The backup is just supposed to allow a system restore
|
||||||
"/persist/old_homes"
|
# "/persist/old_homes"
|
||||||
"/persist/old_roots"
|
# "/persist/old_roots"
|
||||||
|
#
|
||||||
# Those are synced by nextcloud, no need to backup them 50 times
|
# # Those are synced by nextcloud, no need to backup them 50 times
|
||||||
"/persist/home/${username}/Documents"
|
# "/persist/home/${username}/Documents"
|
||||||
"/persist/home/${username}/NixFlake"
|
# "/persist/home/${username}/NixFlake"
|
||||||
"/persist/home/${username}/Notes"
|
# "/persist/home/${username}/Notes"
|
||||||
"/persist/home/${username}/Projects"
|
# "/persist/home/${username}/Projects"
|
||||||
"/persist/home/${username}/Public"
|
# "/persist/home/${username}/Public"
|
||||||
|
#
|
||||||
# Some more caches
|
# # Some more caches
|
||||||
".cache"
|
# ".cache"
|
||||||
"cache2" # firefox
|
# "cache2" # firefox
|
||||||
"Cache"
|
# "Cache"
|
||||||
];
|
# ];
|
||||||
extraBackupArgs = [
|
# extraBackupArgs = [
|
||||||
"--exclude-caches" # Excludes marked cache directories
|
# "--exclude-caches" # Excludes marked cache directories
|
||||||
"--one-file-system" # Only stay on /persist (in case symlinks lead elsewhere)
|
# "--one-file-system" # Only stay on /persist (in case symlinks lead elsewhere)
|
||||||
"--cleanup-cache" # Auto remove old cache directories
|
# "--cleanup-cache" # Auto remove old cache directories
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
|
|||||||
Reference in New Issue
Block a user