Comments (4)
Hello,
I did some more tests, and found that the problem is mostly due to the readlink
calls on parse_target_uri()
function:
- https://github.com/dalibo/pitrery/blob/master/pitrery#L344
- https://github.com/dalibo/pitrery/blob/master/pitrery#L394
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.
Hello, thanks for the investigation. I'll look into it ASAP: this looks like a tricky bug.
from pitrery.
should be fixed by 5cc31ca
from pitrery.
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)
- restore_wal bash < 4.2 error
- Use local circleci HOT 2
- Migration issue : `archive_xlog` directory not renamed
- Infinite loop while checking the wals HOT 3
- Change in behaviour while restoring, between PG 11 & 12
- Add a note about difference between Pitrery and Wal-g in documentation? HOT 2
- Abort purge if we have a "permission denied" on the backups HOT 6
- Create backup_manifest files on backup
- Error out when check cannot do -An or -Bn HOT 5
- be more strict about what we consider a valid backup directory HOT 4
- Add a timeout for archive_wal HOT 1
- FATAL: Could not write pitrery.conf: directory is not writable and other error HOT 4
- pitrery restore: WARNING: could not get the ending timestamp HOT 4
- Update man pages
- Never mind HOT 1
- Storing PGPASSFILE environment variable in configuration file HOT 1
- Add Timeline & WAL location or checkpoint from pg_controldata in output and list
- check command thinks that the remote target directory does not exist
- *_xlog to *_wal: warn about script name change HOT 1
- Add non regression tests HOT 4
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 pitrery.