This is an automated email from the ASF dual-hosted git repository.
tuhaihe pushed a change to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry-backup.git
from 3b5451f4 ASF: updates for Apache license compliance
new 81208cfb Add gpbackman in the cloudberry-backup.
new 51ae0a50 Replace duplicate utility functions.
new 01d71064 Use same style as other main files.
new 9c63f860 Disable auto-formatting for table headers in backup-info
command.
new 98848ab1 Add end-to-end tests for gpbackman functionality.
new a0768517 Fix typo in flag names and function for backup clean and
history clean commands.
new aa98ae5a Add gpbackman path setup and skip condition for old backup
version tests.
new abeb027e Refactor backup deletion commands to use direct SSH execution.
new 74240649 Add documentation for gpBackMan.
new 06c4dd45 Add Apache License header to files in gpBackMan.
new 21773a86 Fix release tarball base version naming
new 955ed6b1 Include Apache compliance files in binary packages (#81)
new 9011029c asf.yaml: add woblerr as a collaborator
new 04ecda5e Bump Go version from 1.21 to 1.24.
new 4bc2371d Fix go vet issue.
new 03ec6d13 Migrate golangci-lint from v1 to v2.
new a98e9842 Fix lint issues introduced by golangci-lint v2 migration.
new 06ba8fe5 Bump setup-go action to v5 and go to 1.24.
new 0304fd52 Remove legacy `// +build` directives. The legacy `// +build`
form is no longer needed.
new 5ad693e8 Replace deprecated io/ioutil. The io/ioutil package has been
deprecated since Go 1.16. All usages are replaced with their recommended
alternatives from os and io packages. Changes: - ioutil.ReadFile -> os.ReadFile
- ioutil.WriteFile -> os.WriteFile - ioutil.TempFile -> os.CreateTemp -
ioutil.TempDir -> os.MkdirTemp - ioutil.ReadAll -> io.ReadAll - ioutil.ReadDir
-> os.ReadDir
new 35b439f5 Add ASF license header to golangci.yml.
new 57e8bdbc Bump VERSION to 2.2.0 for main
new 10b66d18 CI: add smoke test for command validation (#84)
new 3da0117a Docs: update installation command to use specific version tag
(#89)
new 5e5a0fde Align release artifact naming with Apache incubator
conventions
new 00b89431 Fix: gprestore --resize-cluster fails with --jobs > 1
new 5bc9f51f Speed up column permissions query.
new a96766b9 gpbackman: fall back to coordinator data dir for history db,
fail loud when missing.
new a4377b31 gpbackman: document history-db env-var fallback in
COMMANDS.md and README.md.
new 9c60bed5 gpbackman: gate history-db env-var fallback behind
--auto-load-history-db opt-in.
new bda5af34 gpbackman: wrap non-NotExist os.Stat error with path context
in OpenHistoryDB.
new 92b995f7 gpbackman: drop MASTER_DATA_DIRECTORY from history-db env-var
fallback.
new 5cba5792 Add gpbackup_exporter — a Prometheus exporter for gpbackup
history database. (#87)
new ce95c0dd Package: extract install script generation to template file
(#95)
new ea644594 NOTICE: add the original gpbackup NOTICE
new cb366b8d Bump Go from 1.24 to 1.25 (#99)
new 925e9217 Bump dependencies to fix Dependabot alerts. Bump
golang.org/x/crypto to v0.52.0. Bump golang.org/x/net to v0.55.0. Bump other
dependencies.
new bbb2e2d0 Add convenience package build workflow for cloudberry-backup
(#108)
new feb1a90c Synchronize gpbackup history with the standby coordinator.
(#111)
new 6c326e78 Add database filters to gpbackman commands. (#113)
The 40 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.asf.yaml | 2 +
.github/workflows/build_and_unit_test.yml | 29 +-
.github/workflows/cloudberry-backup-ci.yml | 72 +-
.github/workflows/package-convenience-binaries.yml | 924 +++++++++++++++++++++
.gitignore | 6 +
.golangci.yml | 69 ++
Makefile | 66 +-
NOTICE | 20 +
README.md | 76 +-
VERSION | 2 +-
backup/backup.go | 20 +-
backup/data.go | 14 +-
backup/history_standby_sync.go | 459 ++++++++++
backup/history_standby_sync_test.go | 630 ++++++++++++++
backup/incremental.go | 6 +-
backup/predata_functions.go | 8 +-
backup/queries_acl.go | 2 +-
backup/queries_table_defs.go | 13 +-
backup/validate.go | 4 +
backup/validate_test.go | 4 +
backup/wrappers.go | 4 +-
cloudberry-backup-release.sh | 23 +-
end_to_end/end_to_end_suite_test.go | 183 +++-
end_to_end/exporter_test.go | 143 ++++
end_to_end/gpbackman_test.go | 853 +++++++++++++++++++
end_to_end/history_standby_sync_test.go | 272 ++++++
end_to_end/incremental_test.go | 2 +-
end_to_end/locks_test.go | 180 +++-
end_to_end/signal_handler_test.go | 129 ++-
exporter/README.md | 122 +++
exporter/exporter_suite_test.go | 32 +
exporter/gpbckp_backup_metrics.go | 177 ++++
exporter/gpbckp_backup_metrics_test.go | 109 +++
exporter/gpbckp_converters.go | 46 +
exporter/gpbckp_converters_test.go | 56 ++
exporter/gpbckp_exporter.go | 186 +++++
exporter/gpbckp_exporter_metrics.go | 52 ++
exporter/gpbckp_exporter_test.go | 286 +++++++
exporter/gpbckp_last_backup_metrics.go | 59 ++
exporter/gpbckp_last_backup_metrics_test.go | 96 +++
exporter/gpbckp_parser.go | 170 ++++
exporter/gpbckp_parser_test.go | 235 ++++++
go.mod | 56 +-
go.sum | 257 ++----
gometalinter.config | 12 -
gpbackman.go | 28 +
gpbackman/COMMANDS.md | 707 ++++++++++++++++
gpbackman/README.md | 108 +++
gpbackman/cmd/backup_clean.go | 320 +++++++
gpbackman/cmd/backup_clean_test.go | 132 +++
gpbackman/cmd/backup_delete.go | 550 ++++++++++++
gpbackman/cmd/backup_info.go | 377 +++++++++
gpbackman/cmd/backup_info_test.go | 292 +++++++
gpbackman/cmd/cmd_suite_test.go | 37 +
gpbackman/cmd/constants.go | 87 ++
gpbackman/cmd/history_clean.go | 169 ++++
gpbackman/cmd/history_clean_test.go | 182 ++++
gpbackman/cmd/history_standby_sync.go | 513 ++++++++++++
gpbackman/cmd/history_standby_sync_test.go | 735 ++++++++++++++++
gpbackman/cmd/history_sync.go | 60 ++
gpbackman/cmd/history_sync_test.go | 340 ++++++++
gpbackman/cmd/interfaces.go | 48 ++
gpbackman/cmd/report_info.go | 296 +++++++
gpbackman/cmd/root.go | 135 +++
gpbackman/cmd/wrappers.go | 289 +++++++
gpbackman/cmd/wrappers_test.go | 535 ++++++++++++
gpbackman/gpbckpconfig/cluster.go | 139 ++++
gpbackman/gpbckpconfig/cluster_test.go | 230 +++++
gpbackman/gpbckpconfig/gpbckpconfig_suite_test.go | 32 +
gpbackman/gpbckpconfig/helpers.go | 254 ++++++
gpbackman/gpbckpconfig/helpers_test.go | 577 +++++++++++++
gpbackman/gpbckpconfig/struct.go | 41 +
gpbackman/gpbckpconfig/utils.go | 173 ++++
gpbackman/gpbckpconfig/utils_db.go | 247 ++++++
gpbackman/gpbckpconfig/utils_db_test.go | 247 ++++++
gpbackman/gpbckpconfig/utils_test.go | 254 ++++++
gpbackman/textmsg/error.go | 280 +++++++
gpbackman/textmsg/error_test.go | 176 ++++
gpbackman/textmsg/info.go | 85 ++
gpbackman/textmsg/info_test.go | 124 +++
gpbackman/textmsg/textmsg_suite_test.go | 32 +
gpbackman/textmsg/warn.go | 30 +
gpbackman/textmsg/warn_test.go | 55 ++
gpbackup.go | 1 -
gpbackup_exporter.go | 172 ++++
gpbackup_helper.go | 1 -
gpbackup_s3_plugin.go | 3 +-
gprestore.go | 1 -
helper/backup_helper.go | 11 +-
helper/restore_helper.go | 11 +-
history/history.go | 6 +-
install.sh.template | 48 ++
integration/data_backup_test.go | 2 +-
integration/helper_test.go | 30 +-
integration/integration_suite_test.go | 2 +-
integration/utils_test.go | 3 +-
options/flag.go | 85 +-
options/flag_test.go | 53 ++
options/options_test.go | 9 +-
plugins/s3plugin/backup.go | 2 +-
plugins/s3plugin/restore.go | 6 +-
plugins/s3plugin/s3plugin.go | 13 +-
report/report.go | 8 +-
report/report_test.go | 5 +-
restore/data.go | 35 +-
restore/data_test.go | 24 +-
restore/restore.go | 4 +-
restore/validate.go | 4 +-
restore/wrappers.go | 4 +-
restore/wrappers_test.go | 9 +-
testutils/functions.go | 4 +-
toc/toc.go | 6 +-
tools.go | 1 -
utils/gpexpand_sensor.go | 9 +-
utils/io.go | 9 +-
utils/io_test.go | 5 +-
utils/plugin.go | 14 +-
utils/plugin_test.go | 17 +-
utils/util.go | 2 +-
119 files changed, 15105 insertions(+), 596 deletions(-)
create mode 100644 .github/workflows/package-convenience-binaries.yml
create mode 100644 .golangci.yml
create mode 100644 backup/history_standby_sync.go
create mode 100644 backup/history_standby_sync_test.go
create mode 100644 end_to_end/exporter_test.go
create mode 100644 end_to_end/gpbackman_test.go
create mode 100644 end_to_end/history_standby_sync_test.go
create mode 100644 exporter/README.md
create mode 100644 exporter/exporter_suite_test.go
create mode 100644 exporter/gpbckp_backup_metrics.go
create mode 100644 exporter/gpbckp_backup_metrics_test.go
create mode 100644 exporter/gpbckp_converters.go
create mode 100644 exporter/gpbckp_converters_test.go
create mode 100644 exporter/gpbckp_exporter.go
create mode 100644 exporter/gpbckp_exporter_metrics.go
create mode 100644 exporter/gpbckp_exporter_test.go
create mode 100644 exporter/gpbckp_last_backup_metrics.go
create mode 100644 exporter/gpbckp_last_backup_metrics_test.go
create mode 100644 exporter/gpbckp_parser.go
create mode 100644 exporter/gpbckp_parser_test.go
delete mode 100644 gometalinter.config
create mode 100644 gpbackman.go
create mode 100644 gpbackman/COMMANDS.md
create mode 100644 gpbackman/README.md
create mode 100644 gpbackman/cmd/backup_clean.go
create mode 100644 gpbackman/cmd/backup_clean_test.go
create mode 100644 gpbackman/cmd/backup_delete.go
create mode 100644 gpbackman/cmd/backup_info.go
create mode 100644 gpbackman/cmd/backup_info_test.go
create mode 100644 gpbackman/cmd/cmd_suite_test.go
create mode 100644 gpbackman/cmd/constants.go
create mode 100644 gpbackman/cmd/history_clean.go
create mode 100644 gpbackman/cmd/history_clean_test.go
create mode 100644 gpbackman/cmd/history_standby_sync.go
create mode 100644 gpbackman/cmd/history_standby_sync_test.go
create mode 100644 gpbackman/cmd/history_sync.go
create mode 100644 gpbackman/cmd/history_sync_test.go
create mode 100644 gpbackman/cmd/interfaces.go
create mode 100644 gpbackman/cmd/report_info.go
create mode 100644 gpbackman/cmd/root.go
create mode 100644 gpbackman/cmd/wrappers.go
create mode 100644 gpbackman/cmd/wrappers_test.go
create mode 100644 gpbackman/gpbckpconfig/cluster.go
create mode 100644 gpbackman/gpbckpconfig/cluster_test.go
create mode 100644 gpbackman/gpbckpconfig/gpbckpconfig_suite_test.go
create mode 100644 gpbackman/gpbckpconfig/helpers.go
create mode 100644 gpbackman/gpbckpconfig/helpers_test.go
create mode 100644 gpbackman/gpbckpconfig/struct.go
create mode 100644 gpbackman/gpbckpconfig/utils.go
create mode 100644 gpbackman/gpbckpconfig/utils_db.go
create mode 100644 gpbackman/gpbckpconfig/utils_db_test.go
create mode 100644 gpbackman/gpbckpconfig/utils_test.go
create mode 100644 gpbackman/textmsg/error.go
create mode 100644 gpbackman/textmsg/error_test.go
create mode 100644 gpbackman/textmsg/info.go
create mode 100644 gpbackman/textmsg/info_test.go
create mode 100644 gpbackman/textmsg/textmsg_suite_test.go
create mode 100644 gpbackman/textmsg/warn.go
create mode 100644 gpbackman/textmsg/warn_test.go
create mode 100644 gpbackup_exporter.go
create mode 100644 install.sh.template
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]