zammad_restore.sh 512 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env bash
  2. #
  3. # zammad restore script
  4. #
  5. # shellcheck disable=SC2046
  6. BACKUP_SCRIPT_PATH="$(dirname $(realpath $0))"
  7. # import functions
  8. . ${BACKUP_SCRIPT_PATH}/functions
  9. # ensure we have all options
  10. demand_backup_conf
  11. # exec restore
  12. start_restore_message
  13. get_zammad_dir
  14. restore_warning "${1}"
  15. check_database_config_exists
  16. check_empty_password
  17. get_restore_dates
  18. choose_restore_date "${1}"
  19. backup_file_read_test
  20. detect_initcmd
  21. stop_zammad
  22. restore_zammad
  23. start_zammad
  24. finished_restore_message