diff --git a/library/__pycache__/smardigo_user_token.cpython-311.pyc b/library/__pycache__/smardigo_user_token.cpython-311.pyc new file mode 100644 index 0000000..ec79a79 Binary files /dev/null and b/library/__pycache__/smardigo_user_token.cpython-311.pyc differ diff --git a/roles/restore_maria/files/restore.sh b/roles/restore_maria/files/restore.sh index ff78b43..d555344 100644 --- a/roles/restore_maria/files/restore.sh +++ b/roles/restore_maria/files/restore.sh @@ -12,8 +12,7 @@ DATE=$(date +%F) systemctl stop mariadb -rm -rf ${DATADIR}_moved -mv ${DATADIR} ${DATADIR}_moved +rm -rf ${DATADIR} mkdir -p ${DATADIR} LOCAL_BACKUP_DIR="/home/backupuser/backups/${STAGE}/maria/${DATABASE_SERVER}" diff --git a/roles/restore_postgres/files/restore.sh b/roles/restore_postgres/files/restore.sh index b707513..a0748ab 100644 --- a/roles/restore_postgres/files/restore.sh +++ b/roles/restore_postgres/files/restore.sh @@ -14,9 +14,7 @@ PG_GROUP=postgres systemctl stop postgresql -rm -rf ${DATADIR}_moved - -mv ${DATADIR} ${DATADIR}_moved +rm -rf ${DATADIR} mkdir -p ${DATADIR} LOCAL_BACKUP_DIR="/home/backupuser/backups/${STAGE}/postgres/${DATABASE_SERVER}"