zammad_restore.sh 381 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. #
  3. # zammad restore script
  4. #
  5. PATH=/sbin:/bin:/usr/sbin:/usr/bin:
  6. # import config
  7. . /opt/zammad/contrib/backup/config
  8. # import functions
  9. . /opt/zammad/contrib/backup/functions
  10. # exec restore
  11. restore_warning "${1}"
  12. check_database_config_exists
  13. get_restore_dates
  14. choose_restore_date "${1}"
  15. detect_initcmd
  16. stop_zammad
  17. restore_zammad
  18. start_zammad
  19. restore_message