Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 1466
Alex Hales
  • 0
Alex HalesTeacher
Asked: May 30, 20222022-05-30T17:11:43+00:00 2022-05-30T17:11:43+00:00

postgresql – PGBACKREST: Local backup works but remote backup to S3 FAILS

  • 0

[ad_1]

I am setting up pgbackrest to save wal archives to S3. I have two machines. When I used to take backup on the localhost, I am able to save it to S3. However, when I initiate backup from ‘backup server’ it fails.

Backup server config:

[global]
repo1-path=/var/lib/pgbackrest
repo1-retention-full=1
process-max=2
log-level-console=info
log-level-file=debug
start-fast=y
#stop-auto=y

repo2-path=/repo_my1
repo2-type=s3
repo2-s3-endpoint=s3.amazonaws.com
repo2-s3-bucket=<bucket>
repo2-s3-verify-tls=n
repo2-s3-key=<key>
repo2-s3-key-secret=<secret>
repo2-s3-region=us-west-2
repo2-retention-full=1

[db-primary]
pg1-path=/var/lib/pgsql/11/data
pg1-host=db-primary-host
pg1-host-user=postgres

[global:archive-push]
compress-level=3

Primary server (postgres server)

[global]
repo1-host=backup-host
repo1-host-user=backrest
process-max=2
log-level-console=info
log-level-file=debug

[db-primary]
pg1-path=/var/lib/pgsql/11/data


#sudo -iu backrest pgbackrest --stanza=demo --log-level-console=info check

error:

2022-05-30 16:43:52.432 P00   INFO: check repo2 configuration (primary)
2022-05-30 16:43:54.494 P00   INFO: check repo1 archive for WAL (primary)
ERROR: [082]: WAL segment 00000001000000000000002B was not archived before the 60000ms timeout
HINT: check the archive_command to ensure that all options are correct (especially --stanza).
HINT: check the PostgreSQL server log for errors.
HINT: run the 'start' command if the stanza was previously stopped.
2022-05-30 16:44:54.802 P00   INFO: check command end: aborted with exception [082]

[ad_2]

  • 0 0 Answers
  • 7 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 5256 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 1098 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 1047 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.