36 lines
355 B
Bash
36 lines
355 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# zammad restore script
|
||
|
#
|
||
|
|
||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:
|
||
|
|
||
|
# import config
|
||
|
. config
|
||
|
|
||
|
# import functions
|
||
|
. functions
|
||
|
|
||
|
# exec restore
|
||
|
restore_warning
|
||
|
|
||
|
check_database_config_exists
|
||
|
|
||
|
get_db_credentials
|
||
|
|
||
|
get_restore_dates
|
||
|
|
||
|
choose_restore_date
|
||
|
|
||
|
detect_initcmd
|
||
|
|
||
|
stop_zammad
|
||
|
|
||
|
delete_current_files
|
||
|
|
||
|
restore_zammad
|
||
|
|
||
|
start_zammad
|
||
|
|
||
|
restore_message
|