Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
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 ..."
wal-g backup-fetch $PGDATA $WALG_BASE_BACKUP_NAME
Expand Down