Small change vw

This commit is contained in:
2025-05-05 22:28:30 +02:00
parent 15492e93e8
commit 46905c8326
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ LOCAL_BACKUP="$HOME/.local/backup/"
REMOTE=""
mkdir -p $LOCAL_BACKUP
CURRENT_DATE=$(date +%F)
DATE=$(date +%F-%H-%M-%S)
TAR_NAME="backup_${CURRENT_DATE}.tar"
tar -cf "$LOCAL_BACKUP/$TAR_NAME" -C "$SOURCE" .
ls -1t "$LOCAL_BACKUP"/backup_*.tar | tail -n +6 | xargs -r rm --

View File

@@ -59,6 +59,7 @@ BACKEND_CFG=$(cat <<EOF
backend vw_backend
mode http
option httpchk GET /
option forward
option forwardfor
# Set the Source IP in the X-Real-IP header
http-request set-header X-Real-IP %[src]