Skip to content

Commit 9ef4816

Browse files
authored
remove raft wal from snapshot restore (#26)
Signed-off-by: Mehedi Hasan <[email protected]>
1 parent 28b2df0 commit 9ef4816

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/restore.sh

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
mkdir -p $PGDATA
44
chmod 0700 "$PGDATA"
55

6+
# remove raft wal
7+
rm -rf /var/pv/raftwal && rm -rf /var/pv/raftsnapshot
8+
69
if [[ "${WALG_BASE_BACKUP_NAME:-0}" != "0" ]]; then
710
echo "starting to restore from basebackup $WALG_BASE_BACKUP_NAME ..."
811
wal-g backup-fetch $PGDATA $WALG_BASE_BACKUP_NAME

0 commit comments

Comments
 (0)