fixed socket list
This commit is contained in:
parent
b2f90473cf
commit
8d2a882507
@ -25,8 +25,11 @@ if [ -d "volumes" ]; then
|
||||
nerdctl exec -e PGPASSWORD=$DB_PASSWORD $CONTAINER_NAME pg_dump -U $DB_USER $DB_NAME > volumes/$DUMP_NAME
|
||||
fi
|
||||
|
||||
# Compress all volumes excerpt mysql and postgres
|
||||
# List sockets to exclude
|
||||
find . -type s -print > /tmp/sockets-to-exclude
|
||||
sed -i 's/volumes\///g' /tmp/sockets-to-exclude
|
||||
|
||||
# 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 .
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user