mirror of
https://abf.rosa.ru/djam/postgresql-pgpool-II.git
synced 2025-05-09 09:01:16 +00:00
Automatic import for version 3.0
This commit is contained in:
commit
8daa3a7049
17 changed files with 1786 additions and 0 deletions
15
pgpool-archive_command
Executable file
15
pgpool-archive_command
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
ARCHIVING_LOCK="archiving_enabled"
|
||||
BACKUP_LOCK="backup_in_progress"
|
||||
DEST="../archive/$2"
|
||||
RETVAL=0
|
||||
if [ -f "$ARCHIVING_LOCK" -o ! -f "$BACKUP_LOCK" ]; then
|
||||
touch "$BACKUP_LOCK"
|
||||
if [ ! -f "$DEST" ]; then
|
||||
install -m600 "$1" -D "$DEST"
|
||||
RETVAL=$?
|
||||
fi
|
||||
rm -f "$BACKUP_LOCK"
|
||||
fi
|
||||
exit $RETVAL
|
Loading…
Add table
Add a link
Reference in a new issue