backup: harden desktop var-lib exclusions
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:
committed by
GitHub
parent
5309618747
commit
c85eea719d
@@ -273,7 +273,9 @@ 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/' \
|
--filter='- /lnd/***' \
|
||||||
|
--exclude='logs/' \
|
||||||
|
--exclude='log/' \
|
||||||
--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,6 +286,8 @@ 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='logs/' \
|
||||||
|
--exclude='log/' \
|
||||||
--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" || \
|
||||||
|
|||||||
Reference in New Issue
Block a user