This is the documentation for
v4 but the latest version is
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/laravel-backup
This package is tailor-made for use inside Laravel applications. But with a little bit of good will you can use it to backup non-Laravel applications as well.
To do so install Laravel on the same server where your non-Laravel application runs. In the Laravel app you'll have to install this package using the installation instructions. In the
app/config/laravel-backup.phpconfiguration file specify the paths of the non-laravel application you wish to backup in the
Do not forget to configure the database as well. In
app/config/databases.php put the credentials of the database used by the non-Laravel application.
php artisan backup:run on the command line, the application will be backed up.