#!/bin/sh #----------------------------------------------------------------------------- # /var/install/bin/postgresql10-tools-restore-server # # Creation: 2005-10-09 dv # Last Update: 2021-02-13 08:55:56 # # Copyright (c) 2023 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/postgresql10 /var/install/bin/postgresql-common-restore-server \ --user="postgres" \ --mount="${POSTGRESQL10_BACKUP_MOUNT}" \ --umount="${POSTGRESQL10_BACKUP_UMOUNT}" \ --folder="${POSTGRESQL10_BACKUP_TARGET}" \ --port="${POSTGRESQL10_CONNECT_PORT}" result="$?" if [ "${result}" = "0" ] then anykey fi exit ${result}