Download the PHP package markocupic/contao-db-backup without Composer
On this page you can find all versions of the php package markocupic/contao-db-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download markocupic/contao-db-backup
More information about markocupic/contao-db-backup
Files in markocupic/contao-db-backup
Package contao-db-backup
Short Description Creates database backups with the Contao backup manager using a configurable cron job (Contao 5.3 and Contao 6).
License MIT
Informations about the package contao-db-backup

Daily database backup for Contao CMS
This extension for Contao CMS uses the backup manager of the Contao core and creates a daily database backup via a cron job by default.
The backup files are stored under var/backups.
Requirements
- Contao 5.3 or later, including Contao 6
- PHP 8.3 or later
Configuration
Upgrading from version 1
Version 1 created the backups with mysqldump in files/contao_db_backup. Since version 2 the backup manager of the Contao core is used:
- The backups are stored in
var/backups(as.sql.gzfiles) instead offiles/contao_db_backup. Old backups are not moved or deleted. - The option
markocupic_contao_db_backup.store_backup_filesis no longer used. Configurecontao.backup.keep_maxandcontao.backup.keep_intervalsinstead (see above). exec()andmysqldumpare no longer required.
Command
To execute the database backup on the command line, you can run php vendor/bin/contao-console contao:backup:create
To show the existing backups you can run php vendor/bin/contao-console contao:backup:list on the command line.
To restore the database you can run php vendor/bin/contao-console contao:backup:restore backup__20220126153243.sql.gz on the command line.
Learn more
All versions of contao-db-backup with dependencies
contao/core-bundle Version ^5.3 || ^6.0
guzzlehttp/promises Version ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
symfony/config Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/event-dispatcher Version ^6.4 || ^7.0 || ^8.0
symfony/event-dispatcher-contracts Version ^3.0
symfony/filesystem Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0