Skip to content

Conversation

minguyen9988
Copy link
Contributor

@minguyen9988 minguyen9988 commented Sep 1, 2025

should fix #780

@minguyen9988 minguyen9988 changed the title restore a backup inplace, for restoring full to update a db with another full db without downtime on data WIP restore a backup inplace, for restoring full to update a db with another full db without downtime on data Sep 1, 2025
fix create

remove unwanted
@minguyen9988 minguyen9988 force-pushed the minguyen/restore_remote branch from 936245e to c84c9af Compare September 1, 2025 03:41
@coveralls
Copy link

Pull Request Test Coverage Report for Build 17374127302

Details

  • 17 of 633 (2.69%) changed or added relevant lines in 6 files are covered.
  • 272 unchanged lines in 10 files lost coverage.
  • Overall coverage decreased (-4.3%) to 64.381%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/backup/restore_remote.go 4 6 66.67%
pkg/backup/backuper.go 0 3 0.0%
cmd/clickhouse-backup/main.go 5 9 55.56%
pkg/backup/restore.go 2 609 0.33%
Files with Coverage Reduction New Missed Lines %
pkg/backup/restore.go 1 52.04%
cmd/clickhouse-backup/main.go 2 75.36%
pkg/storage/object_disk/object_disk.go 5 66.48%
pkg/config/config.go 8 71.98%
pkg/status/status.go 9 67.43%
pkg/backup/backuper.go 17 71.64%
pkg/server/server.go 18 59.1%
pkg/storage/general.go 24 60.66%
pkg/storage/s3.go 25 47.49%
pkg/storage/gcs.go 163 0.0%
Totals Coverage Status
Change from base Build 17318832364: -4.3%
Covered Lines: 10254
Relevant Lines: 15927

💛 - Coveralls

@Slach Slach added this to the 2.7.0 milestone Sep 1, 2025
- Resolved merge conflicts in cmd/clickhouse-backup/main.go, pkg/backup/restore.go, pkg/backup/restore_remote.go, and pkg/server/server.go
- Integrated upstream named collections support with existing enhanced logging functionality
- Preserved in-place restore routing logic with additional named collections condition
- Maintained function signature compatibility by adding restoreNamedCollections and namedCollectionsOnly parameters
- Enhanced logging for table drops, part removals, and part downloads remains intact
- Resolved remaining merge conflict in cmd/clickhouse-backup/main.go restore_remote command
- Merged upstream named collections support with enhanced in-place restore functionality
- Updated go.mod and go.sum with upstream dependency changes
- All functionality preserved: enhanced logging, routing logic, and CLI parameter handling
@minguyen9988 minguyen9988 changed the title WIP restore a backup inplace, for restoring full to update a db with another full db without downtime on data restore a backup inplace, for restoring full to update a db with another full db without downtime on data Sep 2, 2025
@minguyen9988 minguyen9988 changed the title restore a backup inplace, for restoring full to update a db with another full db without downtime on data Restore a backup in-place, for restoring full to update a db with another full db without downtime on data Sep 2, 2025
nguyenminhduc9988 and others added 13 commits September 2, 2025 02:29
…ed JSONL restore

Co-authored-by: aider (gemini/gemini-2.5-pro) <[email protected]>
…e header versions in restore

Co-authored-by: aider (gemini/gemini-2.5-pro) <[email protected]>
@minguyen9988 minguyen9988 force-pushed the minguyen/restore_remote branch from b8f71ee to 4c5132c Compare September 5, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --streaming option to create_remote and restore_remote
4 participants