Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print storage names in backup-list #1538

Merged
merged 6 commits into from Sep 6, 2023

Conversation

rdjjke
Copy link
Contributor

@rdjjke rdjjke commented Aug 25, 2023

PostgreSQL now supports failover storages which are used when the main one is dead.

In this PR I supported failover storages in backup-list command: storage names are now printed along with the rest of the info.

Storage names are also printed for all other databases besides PG, but only in the "basic" mode when --detail flag isn't set.

@rdjjke rdjjke force-pushed the backup-list-failover-storages/0 branch 4 times, most recently from 184bdc7 to 0d85126 Compare August 28, 2023 14:18
@rdjjke rdjjke requested a review from usernamedt August 28, 2023 14:22
pkg/storages/memory/storage.go Outdated Show resolved Hide resolved
pkg/storages/memory/folder.go Show resolved Hide resolved
internal/multistorage/folder.go Outdated Show resolved Hide resolved
internal/databases/mongo/models/backup.go Outdated Show resolved Hide resolved
If we create a folder with path "/" (representing the root folder), or with any other path starting with "/", the listing breaks: it finds no files or subfolders because their paths don't start with "/".

Also stop creating multi-storage folders with path "/", and always represent the root path by "" to avoid ambiguity.
@rdjjke rdjjke force-pushed the backup-list-failover-storages/0 branch from c80e33f to bbfd397 Compare September 1, 2023 15:02
@rdjjke rdjjke force-pushed the backup-list-failover-storages/0 branch from 7ae632d to dde183c Compare September 4, 2023 07:56
@rdjjke rdjjke force-pushed the backup-list-failover-storages/0 branch from dde183c to 1b36239 Compare September 4, 2023 08:02
@rdjjke rdjjke force-pushed the backup-list-failover-storages/0 branch from 4a97ed2 to ed7845b Compare September 5, 2023 15:54
@rdjjke rdjjke merged commit 5b6fe11 into wal-g:master Sep 6, 2023
70 checks passed
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.

None yet

4 participants