1
0

Compare commits

..

No commits in common. "2cdf09c5aeff0c0bb5adb3435cce55fe7d9c03eb" and "ab4b4918a0b37a0e5e7e0a88f5720d83c6858fa2" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -5,9 +5,6 @@
networking.networkmanager.extraConfig = ''
[connectivity]
uri=http://ping.clerie.de/nm-check.txt
[global-dns]
searches=net.clerie.de
'';
}

View File

@ -44,10 +44,12 @@ let
export RESTIC_PROGRESS_FPS=0.1
export RESTIC_CACHE_DIR=/var/cache/restic
restic snapshots --latest 1 || restic init
restic snapshots || restic init
restic backup ${optionalString (jobOptions.exclude != []) "--exclude-file ${pkgs.writeText "clerie-backup-${jobName}-${targetName}-excludes" (concatStringsSep "\n" jobOptions.exclude)}"} ${escapeShellArgs jobOptions.paths}
restic check
${optionalString (config.clerie.monitoring.enable) ''
echo "clerie_backup_last_successful_run_time{backup_job=\"${jobName}\", backup_target=\"${targetName}\"} $(date +%s)" > /var/lib/prometheus-node-exporter/textfiles/clerie-backup-${jobName}-${targetName}.prom
''}