Automatic import for version 3.0

This commit is contained in:
Rosa 2012-02-01 19:57:31 +04:00
commit 8daa3a7049
17 changed files with 1786 additions and 0 deletions

15
pgpool-archive_command Executable file
View 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