Skip to content

Commit

Permalink
remove raft wal from snapshot restore
Browse files Browse the repository at this point in the history
Signed-off-by: Mehedi Hasan <mehedi.hasan@appscode.com>
  • Loading branch information
heheh13 committed Dec 7, 2023
1 parent eda2d99 commit 50036c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."
Expand Down

0 comments on commit 50036c5

Please sign in to comment.