From f297193f8ff648b09aa1343b71c0540aad8e6edd Mon Sep 17 00:00:00 2001 From: julien Date: Sun, 19 Jan 2025 18:20:59 +0100 Subject: [PATCH] works --- sbin/vol-backup | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sbin/vol-backup b/sbin/vol-backup index b6bc2f7..1acc8d6 100755 --- a/sbin/vol-backup +++ b/sbin/vol-backup @@ -25,15 +25,9 @@ if [ -d "volumes" ]; then nerdctl exec -e PGPASSWORD=$DB_PASSWORD $CONTAINER_NAME pg_dump -U $DB_USER $DB_NAME > volumes/$DUMP_NAME fi - # List sockets to exclude - find . -type s -print > /tmp/sockets-to-exclude - if grep -q volumes "/tmp/sockets-to-exclude"; then - sed -i 's/volumes\///g' /tmp/sockets-to-exclude - fi - # Compress all volumes excerpt mysql and postgres BACKUP=${PWD##*/}.tar.zst - tar -X /tmp/sockets-to-exclude --exclude='mysql' --exclude='postgres' --zstd -cf /tmp/$BACKUP -C volumes . + tar --exclude='mysql' --exclude='postgres' --zstd -cf /tmp/$BACKUP -C volumes . # Put it into the storage box (pubkey needed) STORAGE_BOX=u442569@u442569.your-storagebox.de