trabajo-afectivo/contrib/backup/zammad_restore.sh

32 lines
381 B
Bash
Raw Normal View History

#!/bin/bash
#
# zammad restore script
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin:
# import config
2017-02-12 13:56:39 +00:00
. /opt/zammad/contrib/backup/config
# import functions
2017-02-12 13:56:39 +00:00
. /opt/zammad/contrib/backup/functions
# exec restore
2017-02-12 13:56:39 +00:00
restore_warning "${1}"
check_database_config_exists
get_restore_dates
2017-02-12 13:56:39 +00:00
choose_restore_date "${1}"
detect_initcmd
stop_zammad
restore_zammad
start_zammad
restore_message