Comments (4)
Yep, that's a bug.
I'm considering this fix...but it smells. I need to think about it a bit more.
index a68ffb5..c552726 100644
--- a/backup.go
+++ b/backup.go
@@ -88,7 +88,7 @@ func (b *Backup) GetBackups() ([]BackupTime, error) {
var sortTimes []BackupTime
objects := &s3.ListObjectsV2Input{
Bucket: b.Prefix.Bucket,
- Prefix: b.Path,
+ Prefix: aws.String(strings.TrimLeft(*b.Path, "/")),
Delimiter: aws.String("/"),
}
from wal-g.
I've addressed this in the recent commit. If the issue appears again (after coming release), plz ping me
from wal-g.
[root@pg-d ~]# export WALE_S3_PREFIX=s3://local/bucket110/backupfull/
[root@pg-d ~]# wal-g backup-push --permanent /var/lib/pgsql/10/data/
INFO: 2019/11/07 10:47:25.327762 Doing full backup.
INFO: 2019/11/07 10:47:25.340525 Calling pg_start_backup()
INFO: 2019/11/07 10:47:25.486507 Walking ...
INFO: 2019/11/07 10:47:25.487072 Starting part 1 ...
INFO: 2019/11/07 10:47:31.690304 Finished writing part 1.
INFO: 2019/11/07 10:47:31.690329 Starting part 2 ...
INFO: 2019/11/07 10:47:38.624840 Finished writing part 2.
INFO: 2019/11/07 10:47:38.624866 Starting part 3 ...
INFO: 2019/11/07 10:47:51.670652 Finished writing part 3.
INFO: 2019/11/07 10:47:51.670677 Starting part 4 ...
INFO: 2019/11/07 10:47:59.396819 Finished writing part 4.
INFO: 2019/11/07 10:47:59.396863 Starting part 5 ...
INFO: 2019/11/07 10:48:03.324221 Finished writing part 5.
INFO: 2019/11/07 10:48:03.324243 Starting part 6 ...
INFO: 2019/11/07 10:48:07.859687 Finished writing part 6.
INFO: 2019/11/07 10:48:07.859722 Starting part 7 ...
INFO: 2019/11/07 10:48:10.781761 Finished writing part 7.
INFO: 2019/11/07 10:48:13.465238 Starting part 8 ...
INFO: 2019/11/07 10:48:13.465263 /global/pg_control
INFO: 2019/11/07 10:48:13.468189 Finished writing part 8.
INFO: 2019/11/07 10:48:13.468908 Calling pg_stop_backup()
INFO: 2019/11/07 10:48:14.539671 Starting part 9 ...
INFO: 2019/11/07 10:48:14.546127 backup_label
INFO: 2019/11/07 10:48:14.546176 tablespace_map
INFO: 2019/11/07 10:48:14.546226 Finished writing part 9.
INFO: 2019/11/07 10:48:14.671275 Wrote backup with name base_000000020000001E000000D8
[root@pg-d ~]# wal-g backup-list
INFO: 2019/11/07 10:48:54.743466 No backups found
[root@pg-d ~]# wal-g backup-list
INFO: 2019/11/07 10:49:03.983789 No backups found
[root@pg-d ~]# wal-g backup-list
INFO: 2019/11/07 10:52:52.495900 No backups found
[root@pg-d ~]# mc ls local/bucket110/backupfull
[2019-11-07 10:53:12 CST] 0B basebackups_005/
[root@pg-d ~]# mc ls local/bucket110/backupfull/basebackups_005
[2019-11-07 10:48:14 CST] 510KiB base_000000020000001E000000D8_backup_stop_sentinel.json
[2019-11-07 10:53:17 CST] 0B base_000000020000001E000000D8/
from wal-g.
use WALG_S3_PREFIX
instead of WALE_S3_PREFIX
from wal-g.
Related Issues (20)
- backup-fetch has issues with specific parts of backups HOT 1
- copy command does not work as expected HOT 1
- Greenplum, Couldn't get current timeline because of error: 'ERROR: function pg_control_checkpoint() does not exist (SQLSTATE 42883)' HOT 1
- base_*_backup_stop_sentinel.json much smaller with Postgresql 16 than 14 HOT 3
- Error from MergeWriter on backup restore HOT 3
- Fast PG catchup HOT 1
- "go get" Build instructions in README are no longer correct HOT 1
- Error unexpected response HOT 1
- Binary logs has been overwritten in storage after switchover HOT 1
- wal-g backup-push hangs after get 409 from S3 HOT 1
- wal-g delete retain taking time and then timing out HOT 6
- Deleting local backups and WAL logs HOT 3
- Warning "failed to find uploaded binlog behind " on all backups since upgrade to mariadb 10.11 HOT 2
- WAL-G xtrabackup-push is slow HOT 4
- check-ao-aocs-length command does not read config HOT 1
- binlog-server: Error while waiting MySQL applied binlogs HOT 1
- Questions about 3.0 release HOT 5
- Building for Windows HOT 1
- Greenplum: Restoration GP from a backup with the --restore-only option HOT 3
- CVE-2023-39325 - golang: net/http, x/net/http2: rapid stream resets can cause excessive work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wal-g.