if sockets-to-exclude file is not empty
This commit is contained in:
parent
8d2a882507
commit
d02b616ea0
@ -27,7 +27,9 @@ if [ -d "volumes" ]; then
|
|||||||
|
|
||||||
# List sockets to exclude
|
# List sockets to exclude
|
||||||
find . -type s -print > /tmp/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
|
sed -i 's/volumes\///g' /tmp/sockets-to-exclude
|
||||||
|
fi
|
||||||
|
|
||||||
# Compress all volumes excerpt mysql and postgres
|
# Compress all volumes excerpt mysql and postgres
|
||||||
BACKUP=${PWD##*/}.tar.zst
|
BACKUP=${PWD##*/}.tar.zst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user