zammad_backup.sh 313 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. #
  3. # zammad backup 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 backup
  11. check_database_config_exists
  12. delete_old_backups
  13. get_backup_date
  14. backup_dir_create
  15. backup_files
  16. backup_db