works
This commit is contained in:
parent
d02b616ea0
commit
f297193f8f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user