From 50036c5518ccce69fe6cf775eea4bc2257cc283e Mon Sep 17 00:00:00 2001 From: Mehedi Hasan Date: Thu, 7 Dec 2023 11:47:03 +0600 Subject: [PATCH] remove raft wal from snapshot restore Signed-off-by: Mehedi Hasan --- scripts/restore.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/restore.sh b/scripts/restore.sh index be27e2e..b60d62c 100755 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -2,6 +2,8 @@ mkdir -p $PGDATA chmod 0700 "$PGDATA" +# remove raft wal +rm -rf /var/pv/raftwal && rm -rf /var/pv/raftsnapshot if [[ "${WALG_BASE_BACKUP_NAME:-0}" != "0" ]]; then echo "starting to restore from basebackup $WALG_BASE_BACKUP_NAME ..."