exclude socket files
This commit is contained in:
parent
0b9c50e94b
commit
b2f90473cf
@ -26,8 +26,9 @@ if [ -d "volumes" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Compress all volumes excerpt mysql and postgres
|
# Compress all volumes excerpt mysql and postgres
|
||||||
|
find . -type s -print > /tmp/sockets-to-exclude
|
||||||
BACKUP=${PWD##*/}.tar.zst
|
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)
|
# Put it into the storage box (pubkey needed)
|
||||||
STORAGE_BOX=u442569@u442569.your-storagebox.de
|
STORAGE_BOX=u442569@u442569.your-storagebox.de
|
||||||
@ -40,4 +41,5 @@ if [ -d "volumes" ]; then
|
|||||||
rm volumes/$DUMP_NAME
|
rm volumes/$DUMP_NAME
|
||||||
fi
|
fi
|
||||||
rm /tmp/$BACKUP
|
rm /tmp/$BACKUP
|
||||||
|
rm /tmp/sockets-to-exclude
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user