1234567891011121314151617181920212223242526272829303132333435363738 |
- #!/usr/bin/env bash
- #
- # zammad backup script
- #
- # shellcheck disable=SC2046
- BACKUP_SCRIPT_PATH="$(dirname $(realpath $0))"
- # import functions
- . ${BACKUP_SCRIPT_PATH}/functions
- # ensure we have all options
- demand_backup_conf
- # exec backup
- start_backup_message
- get_zammad_dir
- check_database_config_exists
- check_empty_password
- get_backup_date
- backup_dir_create
- backup_file_write_test
- delete_old_backups
- backup_files
- backup_db
- backup_chmod_dump_data
- finished_backup_message
|