zammad_backup.sh 484 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env bash
  2. #
  3. # zammad backup 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 backup
  12. start_backup_message
  13. get_zammad_dir
  14. check_database_config_exists
  15. check_empty_password
  16. get_backup_date
  17. backup_dir_create
  18. backup_file_write_test
  19. delete_old_backups
  20. backup_files
  21. backup_db
  22. backup_chmod_dump_data
  23. finished_backup_message