forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc6306db
committed
Add 'basebackup_to_shell' contrib module.
As a demonstration of the sort of thing that can be done by adding acustom backup target, this defines a 'shell' target which executes acommand defined by the system administrator. The command is executedonce for each tar archive generate by the backup and once for thebackup manifest, if any. Each time the command is executed, itreceives the contents of th file for which it is executed via standardinput.The configured command can use %f to refer to the name of the archive(e.g. base.tar, $TABLESPACE_OID.tar, backup_manifest) and %d to referto the target detail (pg_basebackup --target shell:DETAIL). A targetdetail is required if %d appears in the configured command andforbidden if it does not.Patch by me, reviewed by Abhijit Menon-Sen.Discussion:http://postgr.es/m/CA+TgmoaqvdT-u3nt+_kkZ7bgDAyqDB0i-+XOMmr5JN2Rd37hxw@mail.gmail.com1 parente4ba69f commitc6306db
File tree
6 files changed
+510
-0
lines changed- contrib
- basebackup_to_shell
- doc/src/sgml
6 files changed
+510
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + |
0 commit comments
Comments
(0)