backup: tighten rsync var-lib exclude patterns

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/d8d4b876-dfc7-42fd-954c-a9e5b05dc497

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-18 13:49:07 +00:00
committed by GitHub
parent 725aad3aac
commit 5309618747

View File

@@ -273,7 +273,7 @@ log "── Stage 4/4: System data (/var/lib) ───────────
if [[ "$ROLE" == "desktop" ]]; then if [[ "$ROLE" == "desktop" ]]; then
if [[ -d /var/lib ]]; then if [[ -d /var/lib ]]; then
rsync -a --info=progress2 \ rsync -a --info=progress2 \
--exclude='lnd/' \ --exclude='/lnd/' \
--exclude='*/logs/' \ --exclude='*/logs/' \
--exclude='*/log/' \ --exclude='*/log/' \
/var/lib/ "$BACKUP_DIR/var-lib/" 2>&1 | tee -a "$BACKUP_LOG" || \ /var/lib/ "$BACKUP_DIR/var-lib/" 2>&1 | tee -a "$BACKUP_LOG" || \
@@ -284,7 +284,6 @@ if [[ "$ROLE" == "desktop" ]]; then
fi fi
elif [[ -d /var/lib ]]; then elif [[ -d /var/lib ]]; then
rsync -a --info=progress2 \ rsync -a --info=progress2 \
--exclude='lnd/logs/' \
--exclude='*/logs/' \ --exclude='*/logs/' \
--exclude='*/log/' \ --exclude='*/log/' \
/var/lib/ "$BACKUP_DIR/var-lib/" 2>&1 | tee -a "$BACKUP_LOG" || \ /var/lib/ "$BACKUP_DIR/var-lib/" 2>&1 | tee -a "$BACKUP_LOG" || \