[Helper] Remove useless rsync

master
andryyy 2020-04-13 21:35:20 +02:00
parent 59a2ea0959
commit e7a8c84c03
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 2 deletions

View File

@ -245,8 +245,7 @@ function restore() {
-v ${RESTORE_LOCATION}:/backup \ -v ${RESTORE_LOCATION}:/backup \
${SQLIMAGE} /bin/bash -c "shopt -s dotglob ; \ ${SQLIMAGE} /bin/bash -c "shopt -s dotglob ; \
/bin/rm -rf /backup_mariadb/* ; \ /bin/rm -rf /backup_mariadb/* ; \
/bin/tar -Pxvzf /backup/backup_mariadb.tar.gz ; \ /bin/tar -Pxvzf /backup/backup_mariadb.tar.gz"
rsync -avh --usermap=root:mysql --groupmap=root:mysql /backup/ /var/lib/mysql/ ;"
fi fi
echo "Modifying mailcow.conf..." echo "Modifying mailcow.conf..."
source ${RESTORE_LOCATION}/mailcow.conf source ${RESTORE_LOCATION}/mailcow.conf