2017-02-12 11:52:10 +00:00
|
|
|
#!/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
|
2017-02-12 11:52:10 +00:00
|
|
|
|
|
|
|
# import functions
|
2017-02-12 13:56:39 +00:00
|
|
|
. /opt/zammad/contrib/backup/functions
|
2017-02-12 11:52:10 +00:00
|
|
|
|
|
|
|
# exec restore
|
2017-02-12 13:56:39 +00:00
|
|
|
restore_warning "${1}"
|
2017-02-12 11:52:10 +00:00
|
|
|
|
|
|
|
check_database_config_exists
|
|
|
|
|
|
|
|
get_restore_dates
|
|
|
|
|
2017-02-12 13:56:39 +00:00
|
|
|
choose_restore_date "${1}"
|
2017-02-12 11:52:10 +00:00
|
|
|
|
|
|
|
detect_initcmd
|
|
|
|
|
|
|
|
stop_zammad
|
|
|
|
|
|
|
|
restore_zammad
|
|
|
|
|
|
|
|
start_zammad
|
|
|
|
|
|
|
|
restore_message
|