Git Product home page Git Product logo

Comments (4)

x4m avatar x4m commented on May 18, 2024

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.

x4m avatar x4m commented on May 18, 2024

I've addressed this in the recent commit. If the issue appears again (after coming release), plz ping me

from wal-g.

EamonZhang avatar EamonZhang commented on May 18, 2024
[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.

EamonZhang avatar EamonZhang commented on May 18, 2024

use WALG_S3_PREFIX

instead of WALE_S3_PREFIX

from wal-g.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.