Revert "Store DB files compressed"
This reverts commit f4a289ae98
.
Incremental backups work much better with plaintext
This commit is contained in:
parent
1431f7a30a
commit
b4936f5780
1 changed files with 2 additions and 2 deletions
|
@ -21,13 +21,13 @@ do
|
||||||
"mariadb")
|
"mariadb")
|
||||||
db_name=$(docker exec $container_id bash -c 'echo $MYSQL_USER')
|
db_name=$(docker exec $container_id bash -c 'echo $MYSQL_USER')
|
||||||
echo Backing up mariadb $db_name
|
echo Backing up mariadb $db_name
|
||||||
docker exec $container_id bash -c 'mysqldump -u $MYSQL_USER -p$MYSQL_PASSWORD --all-databases' | zstd -z -11 | pv > $BACKUP_DIR/$db_name-$DATE.sql.zstd
|
docker exec $container_id bash -c 'mysqldump -u $MYSQL_USER -p$MYSQL_PASSWORD --all-databases' | pv > $BACKUP_DIR/$db_name-$DATE.sql
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"postgres")
|
"postgres")
|
||||||
db_name=$(docker exec $container_id bash -c 'echo $POSTGRES_USER')
|
db_name=$(docker exec $container_id bash -c 'echo $POSTGRES_USER')
|
||||||
echo Backing up postgres $db_name
|
echo Backing up postgres $db_name
|
||||||
docker exec $container_id bash -c 'PGPASSWORD=$POSTGRES_PASSWORD pg_dumpall -U $POSTGRES_USER' | zstd -z -11 | pv > $BACKUP_DIR/$db_name-$DATE.sql.zstd
|
docker exec $container_id bash -c 'PGPASSWORD=$POSTGRES_PASSWORD pg_dumpall -U $POSTGRES_USER' | pv > $BACKUP_DIR/$db_name-$DATE.sql
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue