exclude socket files
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user