All notable changes to laravel-backup
will be documented in this file.
- Add Support for Laravel 11 by @stefanzweifel in spatie#1757
- @stefanzweifel made their first contribution in spatie#1757
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.5.1...8.6.0
- Fix duplicate Portuguese translations for backup dates by @ricardo-lobo in spatie#1752
- @ricardo-lobo made their first contribution in spatie#1752
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.5.0...8.5.1
- Fix translations for keys newest_backup_date and oldest_backup_date on tr language by @sdkakcy in spatie#1743
- nunomaduro/larastan abandoned by @parth391 in spatie#1742
- Made it possible to run the backup, cleanup and monitor commands in isolated mode by @pieterclaerhout in spatie#1751
- @sdkakcy made their first contribution in spatie#1743
- @pieterclaerhout made their first contribution in spatie#1751
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.4.1...8.5.0
- Improve strategy comments by @iwasherefirst2 in spatie#1728
- Bump stefanzweifel/git-auto-commit-action from 4.16.0 to 5.0.0 by @dependabot in spatie#1730
- Korean Language added by @corean in spatie#1740
- @iwasherefirst2 made their first contribution in spatie#1728
- @corean made their first contribution in spatie#1740
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.4.0...8.4.1
- Bump actions/checkout from 3 to 4 by @dependabot in spatie#1716
- Possibility of adding timestamp to database dump filename by @boryn in spatie#1717
- Possibility of choosing zip compression method by @boryn in spatie#1718
- @boryn made their first contribution in spatie#1717
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.3.4...8.4.0
- Move registering events to "booted" rather than "registered" by @modstore in spatie#1712
- @modstore made their first contribution in spatie#1712
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.3.3...8.3.4
- Added missing PT and PT/BR translations by @helderneves91 in spatie#1709
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.3.2...8.3.3
- Fix for PhpStan by @erikn69 in spatie#1695
- Update Laravel & Backup Server docs URL to latest version by @rico-vz in spatie#1697
- Return
Command
constants instead of integers in commands by @joshbonnick in spatie#1706 - Send one notification on backup failure by @joshbonnick in spatie#1707
- @rico-vz made their first contribution in spatie#1697
- @joshbonnick made their first contribution in spatie#1706
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.3.1...8.3.2
- bump php version on phpstan.yml by @erikn69 in spatie#1693
- Fix: relative_path too short, example: /app by @erikn69 in spatie#1694
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.3.0...8.3.1
- Add a retry feature to the
backup
andclean
commands by @prestamodule in spatie#1684
- @prestamodule made their first contribution in spatie#1684
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.2.0...8.3.0
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in spatie#1681
- Added configurable gtid purge method by @rcerljenko in spatie#1689
- @rcerljenko made their first contribution in spatie#1689
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.11...8.2.0
- Fix typo in config by @siarheipashkevich in spatie#1673
- Fix PhpStan test by @erikn69 in spatie#1674
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in spatie#1676
- Add Hebrew translations. by @gasner in spatie#1677
- @siarheipashkevich made their first contribution in spatie#1673
- @gasner made their first contribution in spatie#1677
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.10...8.1.11
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in spatie#1663
- Updates fa translations by @fsamapoor in spatie#1664
- @fsamapoor made their first contribution in spatie#1664
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.9...8.1.10
- Updated docs "Installation and setup" by @poldixd in spatie#1658
- Show accurate list of supported drivers when throwing
CannotCreateDbDumper
exception by @dejagersh in spatie#1661
- @poldixd made their first contribution in spatie#1658
- @dejagersh made their first contribution in spatie#1661
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.8...8.1.9
- Add croatian translations. by @kskrlinnorth2 in spatie#1657
- @kskrlinnorth2 made their first contribution in spatie#1657
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.7...8.1.8
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in spatie#1637
- Update DbDumperFactory.php by @nikosv in spatie#1640
- @nikosv made their first contribution in spatie#1640
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.6...8.1.7
- Fix error an Installation Doc by @thomasdominic in spatie#1605
- Update high-level-overview.md by @souravtah in spatie#1607
- Update introduction.md by @souravtah in spatie#1606
- Add Dependabot Automation by @patinthehat in spatie#1616
- fix: zh-TW translation by @hms5232 in spatie#1584
- Bump stefanzweifel/git-auto-commit-action from 4.15.0 to 4.15.4 by @dependabot in spatie#1617
- Bump ramsey/composer-install from 1 to 2 by @dependabot in spatie#1618
- Update Readme Banner by @patinthehat in spatie#1621
- Bump stefanzweifel/git-auto-commit-action from 4.15.4 to 4.16.0 by @dependabot in spatie#1625
- Fix tests badge by @erikn69 in spatie#1629
- Laravel 10.x support by @erikn69 in spatie#1631
- @thomasdominic made their first contribution in spatie#1605
- @souravtah made their first contribution in spatie#1607
- @hms5232 made their first contribution in spatie#1584
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.5...8.1.6
- Bump stefanzweifel/git-auto-commit-action from 4.14.1 to 4.15.0 by @dependabot in spatie#1579
- PHP 8.2 Build by @erikn69 in spatie#1590
- corrected some translations by @fadkeabhi in spatie#1594
- @fadkeabhi made their first contribution in spatie#1594
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.4...8.1.5
- docs: replace v7 links with v8 by @tricki in spatie#1561
- Update adding-extra-notification-channels.md by @llabbasmkhll in spatie#1571
- Italian translations by @massiws in spatie#1580
- @llabbasmkhll made their first contribution in spatie#1571
- @massiws made their first contribution in spatie#1580
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.3...8.1.4
- chore: Included githubactions in the dependabot config by @naveensrinivasan in spatie#1529
- Add phpstan by @Nielsvanpach in spatie#1530
- Bump actions/checkout from 1 to 3 by @dependabot in spatie#1532
- Bump stefanzweifel/git-auto-commit-action from 2.3.0 to 4.14.1 by @dependabot in spatie#1531
- docs(setup): update default config by @tricki in spatie#1540
- Use empty string for Discord defaults by @bbashy in spatie#1544
- Improve output messages for backup:monitor command by @intrepidws in spatie#1560
- @naveensrinivasan made their first contribution in spatie#1529
- @dependabot made their first contribution in spatie#1532
- @tricki made their first contribution in spatie#1540
- @bbashy made their first contribution in spatie#1544
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.2...8.1.3
- Update .gitattributes by @angeljqv in spatie#1514
- Use non-recursive files() method to test if destination is reachable by @mike-healy in spatie#1518
- @angeljqv made their first contribution in spatie#1514
- @mike-healy made their first contribution in spatie#1518
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.1...8.1.2
- Exceptions will be reported when creating a back-up fails
- Notifications will now include the application's environment
Full Changelog: https://github.com/spatie/laravel-backup/compare/7.7.3...7.8.0
- Exceptions will be reported when creating a back-up fails
- Notifications will now include the application's environment
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.1.0...8.1.1
- Exceptions will be reported when creating a back-up fails
- Notifications will now include the application's environment
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.10...8.1.0
- Warns the user about old-style config files for backup:list and backup:monitor commands by @bzarzuela in spatie#1495
- PHPUnit to Pest Converter by @freekmurze in spatie#1503
- @bzarzuela made their first contribution in spatie#1495
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.9...8.0.10
- Allow any characters in backup destination name by @misakstvanu in spatie#1499
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.8...8.0.9
- Fix mistakes in cs/notifications.php by @misakstvanu in spatie#1493
- @misakstvanu made their first contribution in spatie#1493
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.7...8.0.8
- Fixes Brazilian Translation by @Diogo-Freitas in spatie#1490
- @Diogo-Freitas made their first contribution in spatie#1490
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.6...8.0.7
- Updates newest_backup_date and oldest_backup_date by @opengis in spatie#1487
- @opengis made their first contribution in spatie#1487
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.5...8.0.6
- Check if backup destination is reachable before trying to copy backup by @smknstd in spatie#1469
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.4...8.0.5
- Fix issue where local backups were included in new backups by @Diagnost1X in spatie#1486
- @Diagnost1X made their first contribution in spatie#1486
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.3...8.0.4
- fix Russian translation by @sshkpp in spatie#1482
- @sshkpp made their first contribution in spatie#1482
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.2...8.0.3
- Drop offered flysystem version that is uninstallable by @abenerd in spatie#1460
- Make ext-pcntl optional by @erikn69 in spatie#1481
- @abenerd made their first contribution in spatie#1460
Full Changelog: https://github.com/spatie/laravel-backup/compare/8.0.1...8.0.2
- add Bulgarian translation
- add support for Laravel 9
- drop support for older Laravel versions
- Replaced forDriver() if conditions with new php8.0 match expression by @mo7zayed in spatie#1424
- Update DbDumperFactory.php by @ciungulete in spatie#1425
- Correct the column-statistics option for mysqldump by @hatchetaustralia in spatie#1435
- Fixed translated strings in Dutch by @stephanbouman in spatie#1440
- @mo7zayed made their first contribution in spatie#1424
- @ciungulete made their first contribution in spatie#1425
- @hatchetaustralia made their first contribution in spatie#1435
- @stephanbouman made their first contribution in spatie#1440
Full Changelog: https://github.com/spatie/laravel-backup/compare/7.7.2...7.7.3
- Fix discord notification message not using defined avatar url (#1423)
- fix discord notification not getting defined username (#1411)
- bring v6 features to v7 (#1415)
- improve config file
- avoid full path on db dumps (#1387)
- avoid create full path folders when config has relative_path (#1365)
- adds: exception to throw when flysystem returns false (#1348)
- fix retrieving translation string (#1353)
- fix Spanish Translations (#1350)
- translate notification properties
- fix Artisan::call() throws a SIGINT undefined error (#1309)
- added Bangla translations (#1314)
- avoid SIGINT on Windows (#1296)
- fix for #1291 (Send mail notifications to multiple addresses failed)
- add
DumpingDatabase
event (#1292)
- add support for Discord notifications
- delete incomplete backup when cancelling the backup command
- update dependencies (spatie/db-dumper) (#1276)
- update deps (#1275)
- avoid exception when ZipArchive::EM_AES_256 is not available
- encrypt backups (#1246)
- fixed notification failure on unreachable disk (#1226)
- use package service provider
- merge features from v6 branch
- fix events (#1167)
- add support for Norwegian
- clean up of all internals
- drop support for PHP 7
- drop support for anything below Laravel 8
- rename notification class names
- fix undefined constant GLOB_BRACE on alpine (#1370)
- fix windows compat
- avoid full path on db dumps (#1386)
- fix bugs (#1366)
- detect write failures (#1347)
- Add DumpingDatabase event v6 (#1293)
- avoid exception when ZipArchive::EM_AES_256 is not available
- allow to encrypt backup archives (#1239)
- fix for #1225 (#1227)
- add norwegian
- fix exception messages
- add option to add files to zip-file using relative path (#1158)
- Update README.md, docs and comment in config file (#1154)
- add support for PHP 8.0
- drop support for Laravel 5.8
- allow a
CleanupStrategy
to access its intendedBackupDestination
(#1149)
- add funding section
- add Portuguese translations
- add Japanse translations
- add support for Laravel 8
- reduce number of filesystem calls for Backup
exists
anddate
(#1084)
- avoid unreadable folders errors, can be set from config (#1081)
- add support for the
unix_socket
database config option (#1072)
- add right-aligned numbers in console output
- don't resolve notifications from the IoC container, as per Laravel docs
- added support to set execution timeout (#1046)
- add support for Laravel 7
- add Finnish localization (#1039)
- fix MongoDB authentication connection name (#1025)
- empty directories are now being backed up (#1008)
- make compatible with PHP 7.4
- corrects a typo in the method name (#994)
- the monitor command will now really return non zero error code if there is a problem detected (#986)
- the monitor command will now return non zero error code if there is a problem detected (#986)
- fix deps
- handle database urls for database connections (#980)
- fix working with large backups on 32bit PHP installations
- add disk getter function on Backup (#974)
- fix email notifications not being sent #973
THIS VERSION CONTAINS A BREAKING BUG, DO NOT USE
- add custom from address for mail notifications (#967)
- fix for customized lang paths (#964)
- fix backup stopping on notification failure (#960)
- make compatible with Laravel 6
- fix typo in zh-TW backup notification
- add zh-CN & zh-TW
- prevent excessive IO calls by caching backup properties
- add support to add custom dumpers to DbDumperFactory (#900)
- fix naming bug when dumping multiple sqlite db's
- fix translation
- add support for Laravel 5.8
- drop support for Laravel 5.7
- add Czech translations
- use Str:: and Arr:: instead of helper methods
- fix mongo auth error
- fix mongo export extension
- set default backup name
- set default backup name
- fix
monitor_backups.name
default config value
- all config keys are now snake_cased
- health checks have been converted to their own class
- added Dutch translations
- support for older laravel versions has been dropped
- added the ability to use
backup_options
on a disk defined in thefilesystems
config file
- restore lumen compatibility
- fix bugs regarding cleaning backups
- make sure the backup size is correctly displayed
- fix bug where compressor config option would not be respected
- add support for database compressors
- allow Laravel 5.7
- add
stream()
onBackup
- set default for
disableNotifications
onCleanupJob
- resolve
CleanupStrategy
out of the container
- set default when
temporary_directory
config option is not set
THIS VERSION IS BROKEN, DO NOT USE
- add
temporary_directory
config option
- add
stream()
toBackup
- add Polish translation
- add Persian translation
- fix composer requirements
THIS RELEASE WAS DELETED BECAUSE IT COULD GET PULLED IN WITH ONLY PHP7.0 INSTALLED
- only zip files will get threated as backup files
- drop support for PHP 7.0
- gzipping is now handled by db-dumper
- fix wrong import
- lower storage requirements by removing the dumped database file after gzipping it
- improved compatiblity with MariaDB
- improved compatiblity with Google Drive
- add
icon
andusername
to slack config
- fix French translation
- add Hindi translation
- fix typo
- add turkish translation
- allow filtering on db name
- fix typos in exception messages
- add support for L5.6
- add indonesian translation
- more improvements to use correct exit codes
- use correct exit codes
- fix for apps using multiple dbs
- use
config
instead ofenv
to get the app name
- fix deleting all backups when using maximum storage
- add Italian translations
- use all configuration keys when using
read
database connections
- fix CleanupHasFailed application_name translations
- use
APP_NAME
instead ofAPP_URL
to name the backup
- renamed temporary directory
- type hint config contract instead of concreate config class on
EventHandler
- added support for Laravel 5.5, dropped support for older versions of the framework
- renamed config file from
laravel-backup
tobackup
- make sure the temp directory is empty before starting the backup
- fix bug in default cleaning strategy
- add Spanish translations
- close resource in backup destination if this was not already done by Flysystem
- add
disable-notifications
option tobackup
andclean
commands
- add Danish translation
- add French translation
- add Romanian translation
- fix for empty backup when trying to back up a single file
- prevent overwriting of dump files when two databases with the same name (but other driver) are dumped
- add support for MongoDB.
- fix call to undefined method getFilesystemName
- add support for gzipping database dumps
- optimise
backup:list
for external file systems
- add Russian translation
- add Ukranian translation
- add ability to override the Slack channel in the config file
- add pt-BR translation
- dump mysql databases in the configured charset
- add Arabic translation
- fix bug where a file that was already closed by Flysystem would be closed again
- do not send mail notification when config for notification contains an empty string
- added German translations
- fix for
File is busy
error
- added
backupName
tobackupDestinationProperties
of notifications
- fix
unhealthy_backup_found_full
translation
- fix
unhealthy_backup_found_full
translation
- fixed translation for
UnhealthyBackupWasFound
notification - fixed support for floating point numbers for maximum allow storage
- fixed translations for notifications
- add translations for notifications
- add SQLite support
- fix the dumping of DB's on Windows systems
- avoid empty directories in zips on Windows systems
- improve the creation of db dumper subdirectory in the temporary directory
- force creation of temporary directory
- force
BackupDestinationStatus::maximumAllowedUsageInBytes()
to return an integer
- fix constraints so the latest version of
spatie/temporary-backup
can be pulled in
- fix bug where entire backup disk would be ignored for backups
- improve handling of temporary directory
- fix typehint of
setMaximumStorageUsageInMegabytes
- add compatibility for Laravel 5.4
- fix bugs in passing values from the database dump config to the db dumpers
- fix error where
filename
option would not be respected in theBackupCommand
- fix errors when
app.name
is empty
- fix excluding paths of symlinked directories
- added
filename_prefix
to config file
- added
BackupZipCreated
event
- added the ability to use a read-only host for db backups
- use 24h clock when determining names for the zipfile.
- fix for performance problems when backing up a large number of files
- various bugfixes for the backup monitor
- fix for dumping of databases than run on custom ports
- removed custom notification system in favor of Laravel 5.3's native notifications
- made it easier to pass custom arguments to the database dumpers
- refactored most classes
- dropped PHP 5 support
- added L5.3 compatibility
- refactored some code so backing up only writes to a disk without reading from it
- made backup filename configurable
- added telegram sender
- fixed wrong comment in the config file
- vastly reduce memory usage and speed up backup
- the backup:list command now highlights the problems with a backupdestination when it is unhealty
- refactor
FileSelection
in an attempt to reduce memory usage
- fix for missing
followLinks
option after runningcomposer update
- added an option to determine if symlinks should be followed when selecting files
- refactored wildcard support
- add support for wildcards in excluding paths
- add support for dumping a mysql db using a single transaction
- fixed the capitalization of
CleanupWasSuccessful
- the
port
configuration of a postgresql db will now be used when dumping the db
- the
port
configuration of a mysql db will now be used when dumping the db
- fixed the
--only-to-disk
option inbackup:run
- added the ability to use inserts when dumping a PostgreSQL db
- fixed a bug where the error events would not hold the exceptions in the right variable
- excluded node_modules in default backup configuration
- fix bug in service provider
- made the pushover sounds configurable
- made sure that, when a notifier fails, the other notifiers wil still get called
- fixed a typo in the config file
- added pushover sender
- added an option to specify a timeout for the database dumpers
- fixed a bug where notifications for certain events would not be sent
- added an option to specify a custom mysqldump or pg_dump path, by adding
dump_command_path
in the database configuration file, for that particular database
- upped the required version of db-dumper to a bug free version
- fixed
backup:list
-command
This version contains a bug, that pops up when running backup:list
. Please upgrade to 3.1.1
- added support for PostgreSQL
- added an option to the backup command to backup only to a specified diskname
- renamed
filesystems
todisks
in the config file, console output, events and error messages (in a non-breaking way, the old "filesystems" key will still work)
- improve the console output
- fixed the monitor command in Laravel 5.1 apps
- make backup destinations more robust when using non existing file systems
- added console output when a backup command fails
- fixed a bug in the mail and slack notification senders
Complete rewrite with lots of new features:
- added a new strategy to clean up old backups
- added a monitor to check the health of the backups
- added notifications to keep you informed about the status of the backups
- databases will now be dumped using the separate spatie/db-dumper package
- full documentation is now provided on https://docs.spatie.be/laravel-backup
- Add
list
-command - Make the
dump_command_path
-option a bit more robust
- Fix installation error when using Symfony 3
- Fixed a bug that prevented to write directly into the root of an S3 bucket
- Added support for PostgreSQL.
- Further improve the clean up of temporary files.
- Improve the clean up of temporary files.
- Fixed determining the driver of the database.
- The temp backup file will now be explicitly deleted.
- Add
only-files
-option
- Display warning when backupping zero bytes
- Fix tests
- Added option to specify the timeout of the mysqldump command
- Fixed an issue where the incorrect backup filename would be displayed
- Changed github repo location
- Add option to enable mysqldump's extended insert
- Fixed a bug that caused a failure when backing up a large db
- Fixed a bug where the backups would not be stored in the right directory
- Add options to specifify a suffix and a prefix for the backup-zip-file
- Add support for laravel installation that have seperate hosts for reading a writing a db
- Fixes issues where not the whole db gets backed up when not using a socket
2.2.0 (Warning: this version contains a critical bug that could cause an incomplete backup of the database. This issue has been fixed in version 2.2.1)
- Add support for custom sockets
- Package is now compatible with php 5.4
- Fixed a bug where the specified path in the config file is not respected during clean up
- Added a command to clean up old backups
- Added an option to only backup the db
- Fixed a bug that caused dot files not being included in the backup
- Moved orchestra/testbench to dev-dependencies
- Fixed a security issue where, on shared hosting environments,
- the username and password show up in the processlist
- Fixed a bug that caused excluded files to still end up in the backup
- Added an exception when the database dump returns an empty string
- Added support to backup directories and individual files
- Configuration file changed
- Refactored all classes
- Added support to backup to multiple filesystems at once
- Added support for L5's filesystem service
- Initial release