diff --git a/sbin/vol-backup b/sbin/vol-backup index 9c48f68..1491dd1 100755 --- a/sbin/vol-backup +++ b/sbin/vol-backup @@ -26,8 +26,9 @@ if [ -d "volumes" ]; then fi # Compress all volumes excerpt mysql and postgres + find . -type s -print > /tmp/sockets-to-exclude BACKUP=${PWD##*/}.tar.zst - tar --exclude='mysql' --exclude='postgres' --zstd -cf /tmp/$BACKUP -C volumes . + tar -X /tmp/sockets-to-exclude --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 @@ -40,4 +41,5 @@ if [ -d "volumes" ]; then rm volumes/$DUMP_NAME fi rm /tmp/$BACKUP + rm /tmp/sockets-to-exclude fi