Comments (3)
Hello,
Sorry for the delay in my answer.
pre/post hook are interesting. For instance, pre hooks could make the code smaller by let us put the pausing of the replay on standby elsewhere.
As for post hook, I think they are interesting only if they are asynchronous. But this would be difficult to implement with bash.
Regards,
from pg_back.
Hi @pgstef
Nice idea.
How to handle good cases from bad ones ?
For example, how to know that we can copy file on a remote location or not ?
Do we always run pre-hook even after failure ?
Br,
from pg_back.
Pre backup script: (before starting pg_back himself)
Always executed
If return code is different from 0, pg_back fails and run directly Post backup script
Post backup script: (after pg_back execution)
Always executed
One parameter: global return code (pg_back + pre backup script if exists)
If return code is different from 0, pg_back fails also.
So, if a problem occurs, pre and post script will be executed in all situations.
post script will be a garbage collector of error in pre script in all situations.
If pre script, post script or core pg_back fails return code couldn't be 0(SUCCESS)
from pg_back.
Related Issues (20)
- exclude_tables only works for first table
- sftp copy HOT 2
- Upload does not work for pg_back_2.0.1_linux_amd64.deb HOT 2
- backing up data HOT 1
- Retention is bogus for plain export HOT 1
- Helm chart [question] HOT 1
- misc Feedback HOT 1
- bin_directory is ignored! HOT 1
- Save backup informations in CSV file
- Providing --bin-directory fails with a "not a directory" error HOT 3
- Save weekly, monthly backups HOT 2
- "pg_back" is an invalid Debian package name ("_" not allowed) HOT 1
- Support of FORMAT binary (bytea problem) HOT 2
- [README] Go 1.17 necessary HOT 2
- Couldnt connect to db HOT 13
- Can we dump schemas seperately ? HOT 1
- Can we get different sql files for different schemas HOT 1
- 5 different files in output HOT 1
- multiple cluster and multiple pg_back HOT 1
- FATAL: key-value delimiter not found: amed the same as the HOT 2
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 pg_back.