Code Monkey home page Code Monkey logo

Comments (4)

mrimbault avatar mrimbault commented on May 30, 2024

Hello,

I did some more tests, and found that the problem is mostly due to the readlink calls on parse_target_uri() function:

These calls are always resolved locally, even if the configuration specifies that backup and archiving is done using ssh.

That could lead to other problems, like if I create a symlink on the PostgreSQL server using the same name I used ont the configuration, but linking to a directory that does not exist on the backup serveur:

-bash-4.1$ ln -s ~/other_directory/ ./my_backup_symlink

And then executes the exact same pitrery list command as before, it fails with the following error:

FATAL: could not find any backups in /var/lib/pgsql/other_directory/ on 192.168.122.72

I suppose that the readlink command should probably be called over ssh in this case, but I may be missing other factors.

from pitrery.

orgrim avatar orgrim commented on May 30, 2024

Hello, thanks for the investigation. I'll look into it ASAP: this looks like a tricky bug.

from pitrery.

orgrim avatar orgrim commented on May 30, 2024

should be fixed by 5cc31ca

from pitrery.

mrimbault avatar mrimbault commented on May 30, 2024

Hello,

I did some quick tests, and indeed it seems to be fixed:

-bash-4.1$ /opt/pitrery/pitrery list
List of backups on 192.168.122.72
/var/lib/pgsql/pitr/2018.06.04_13.19.46 13M       2018-06-04 13:19:46 CEST

Thanks again!

from pitrery.

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.