#!/bin/sh #----------------------------------------------------------------------------- # /var/install/bin/postgresql84-tools-backup-server # # Creation: 2019-04-01 dv # Last Update: 2019-04-01 21:57:24 # # Copyright (c) 2019 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #----------------------------------------------------------------------------- #include eislib . /var/install/include/eislib . /etc/config.d/postgresql84 /var/install/bin/postgresql-common-backup-server \ --interactive \ --prefix="pgsql84" \ --user="postgres" \ --mount="${POSTGRESQL84_BACKUP_MOUNT}" \ --umount="${POSTGRESQL84_BACKUP_UMOUNT}" \ --folder="${POSTGRESQL84_BACKUP_TARGET}" \ --port="${POSTGRESQL84_SERVER_PORT}" result="$?" if [ "${result}" = "0" ] then anykey fi exit ${result}