Backup/Restore database #597
Replies: 6 comments 6 replies
-
Greenplum 6 & 7 GPDR component for physical backups and PITR leverages pgbackrest not WAL-g. I have been using extensively on a contract. Works very well and recommend pgbackrest over WAL-g. Should this be picked up, I as a user would prefer the ability to place cluster in backup mode (pg_start_backup()) with the ability to either stop there or make an external call for physical backup. Use case I have in mind is as follows:
Application of this case is:
|
Beta Was this translation helpful? Give feedback.
-
@gspiegelberg pgbackrest is focused on Postgres. They will never support GP in the upstream, let alone CBDB. WAL-G is on the other side - we were first PITR system to support Greenplum officially. speaking about snapshot backups - yeah, this feature is desired and was requested many times. PRs are welcome. |
Beta Was this translation helpful? Give feedback.
-
@x4m Whether pgbackrest or WAL-g, support and coordination must come from within the database to say at xid segments are at WAL 1..N and LSN 1..N and recorded such that recovery segments 1..N understands where it must start and end in a restore. Coordinated recording is the Greenplum concept of a restore point. The rest is file shuffling whether archiving (archive_command), restoring (restore_command), or backing up be it tar, one of the many 3rd party tools, or snapshotting data volumes. Perhaps a more agnostic approach should be preferred. Why lock in a consumer of CBDB? |
Beta Was this translation helpful? Give feedback.
-
There’s no need “to lock”. Both tools (WAL-G and some fork of backrest) already work with GP. But it make sense to focus community on a specific tool, because community resources are limited. |
Beta Was this translation helpful? Give feedback.
-
FWIW the work on adapting WAL-G to CBDB is going on here's wal-g/wal-g#1796 |
Beta Was this translation helpful? Give feedback.
-
@x4m Any update on this? |
Beta Was this translation helpful? Give feedback.
-
Description
Lets discuss, how are you going to backup/restore CBDB?
gpbackup/gprestore https://github.com/cloudberrydb/gpbackup by their realisation are logical backup/restore utility.
Logical backup is quite useful for data migration purposes but also lack of important properties:
Use case/motivation
In Greenplum 6.x we use physical database backups (use https://github.com/wal-g/wal-g for that)
Maybe it would be great to add support CBDB in wal-g too. And so CBDB could also use physical backups.
Or maybe I'm wrong and you'll talked me out of this: physical backup not needed anymore for cloud database installations )
Related issues
No response
Are you willing to submit a PR?
Beta Was this translation helpful? Give feedback.
All reactions