[Helper] Use 999:999 as owner instead of mysql:mysql

This commit is contained in:
andryyy 2020-11-04 10:17:59 +01:00
parent 2732e0158c
commit 100650a25e
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -129,7 +129,7 @@ function backup() {
-v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \
${SQLIMAGE} /bin/sh -c "mariabackup --host mysql --user root --password ${DBROOT} --backup --rsync --target-dir=/backup_mariadb ; \
mariabackup --prepare --target-dir=/backup_mariadb ; \
chown -R mysql:mysql /backup_mariadb ; \
chown -R 999:999 /backup_mariadb ; \
/bin/tar --warning='no-file-ignored' --use-compress-program='gzip --rsyncable' -Pcvpf /backup/backup_mariadb.tar.gz /backup_mariadb ;"
fi
;;&