trabajo-afectivo/contrib/backup/zammad_backup.sh

26 lines
313 B
Bash
Raw Normal View History

2016-12-10 13:48:33 +00:00
#!/bin/bash
#
# zammad backup script
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin:
# import config
2017-02-12 13:56:39 +00:00
. /opt/zammad/contrib/backup/config
2016-12-10 13:48:33 +00:00
# import functions
2017-02-12 13:56:39 +00:00
. /opt/zammad/contrib/backup/functions
2016-12-10 13:48:33 +00:00
# exec backup
check_database_config_exists
2016-12-10 13:48:33 +00:00
delete_old_backups
2016-12-10 13:48:33 +00:00
get_backup_date
backup_dir_create
backup_files
backup_db