From 3edbf1284bccbd734733ef077901a76b3eb33c34 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Sat, 18 Apr 2026 09:01:19 -0400 Subject: [PATCH] exclude samba msg.sock from system mirror MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sockets are ephemeral IPC endpoints with PID-based names — they get recreated on every samba restart and can't be backed up meaningfully. Was causing every nightly rsync to USB to recopy them. --- scripts/sync-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync-system.sh b/scripts/sync-system.sh index 27bde99..6420e45 100755 --- a/scripts/sync-system.sh +++ b/scripts/sync-system.sh @@ -21,7 +21,7 @@ sed -i 's/^password .*/password REDACTED/' "$REPO/system/msmtprc" # rsync of /opt/argento/ picks them up. Gitignored — credential hashes don't # belong in version control, but they DO need to ride along on the USB backup. install -d -m 700 "$REPO/system/samba-private" -rsync -a --delete /var/lib/samba/private/ "$REPO/system/samba-private/" +rsync -a --delete --exclude='msg.sock/' /var/lib/samba/private/ "$REPO/system/samba-private/" # Sync root crontab crontab -l > "$REPO/system/root-crontab" 2>/dev/null || true