From cba157518ed78cb9cdf9669b6871a83cdbfa6493 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 29 May 2026 14:48:37 +0900 Subject: [PATCH] backup.sh: ekskluder `/run` og `/var/run` for diverse maskiner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disse mappene inneholder kjøretidsdata som endrer seg ofte, og vil uansett bli slettet når maskinen blir restartet. --- backup.sh | 9 +++++++++ homepvv.exclude | 2 ++ 2 files changed, 11 insertions(+) diff --git a/backup.sh b/backup.sh index f3c6849..26e602a 100755 --- a/backup.sh +++ b/backup.sh @@ -170,6 +170,7 @@ innovation_excludes=( "/tmp" "/var/cache/" "/var/db/freebsd-update/files/" + "/var/run" "/var/tmp" ) @@ -179,9 +180,11 @@ sleipner_includes=( "/" ) sleipner_excludes=( + "/run" "/scratch/" "/tmp" "/var/cache/" + "/var/run" "/var/spool/rwho" "/var/tmp" ) @@ -193,8 +196,10 @@ tom_includes=( "/boot/efi" ) tom_excludes=( + "/run" "/tmp" "/var/cache/" + "/var/run" "/var/spool/rwho" "/var/tmp" ) @@ -205,8 +210,10 @@ balduzius_includes=( "/" ) balduzius_excludes=( + "/run" "/tmp" "/var/cache/" + "/var/run" "/var/tmp" ) host_ssh_hostname["balduzius"]="balduzius-backup" @@ -260,6 +267,7 @@ isvegg_includes=( isvegg_excludes=( "/home" "/nix" + "/run" "/scratch" "/tmp" "/usr/bin/ollama" @@ -267,6 +275,7 @@ isvegg_excludes=( "/var/cache/" "/var/lib/plocate" "/var/log/journal" + "/var/run" "/var/spool/rwho" "/var/tmp" ) diff --git a/homepvv.exclude b/homepvv.exclude index 360f184..1733dec 100644 --- a/homepvv.exclude +++ b/homepvv.exclude @@ -19,6 +19,7 @@ /var/lib/postgresql/8.4/main/pg_xlog /var/spool /var/cache +/var/run /var/tmp /var/account /var/backups/decibel @@ -31,3 +32,4 @@ /Stores /media /mnt +/run