From: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_basebackup not completing |
Date: | 2024-07-24 12:32:37 |
Message-ID: | CANzqJaC7o7cj_mJEBT_3V7-7OfTaBKJa++Wb6D=ZtimLBCjk0Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Wed, Jul 24, 2024 at 1:55 AM Somnath Som <somnath(dot)som(at)ericsson(dot)com>
wrote:
> DB Size 114GB, when running to pg_basebackup then its stuck in 99%, full
> backup is not completing.
>
> Postgres Version: 12.16
>
>
>
> Backup Script: pg_basebackup -h $PGHOST -p $PGPORT -U $PGUSER -D
> $BACKUP_DIR/pgbase_$(date "+%d.%m.%Y-%H%M%S") -Ft -z -Xs -P >> $LOG_FILE
> 2>&1
>
>
>
>
>
Following up on Laurenz's post: *always* check return codes.
My scripts, for example, are peppered with:
declare -i RC
pg_blah ....
RC=$? ; if (( $RC != 0 )); then date +"%F %T Blah failed with error
code=$RC. Exiting script."; exit 6; fi
From | Date | Subject | |
---|---|---|---|
Next Message | khan Affan | 2024-07-24 12:42:19 | Re: Detect who ran DROP schema |
Previous Message | Zaid Shabbir | 2024-07-24 10:42:30 | Re: Detect who ran DROP schema |