Questions tagged [laravel-backup]

Laravel backup is a 3rd party Laravel package developed by Spatie and adds commands that backup the database

Laravel backup is a 3rd party Laravel package that creates database backups.

It is maintained by Spatie, a Belgian company that creates websites and web application. This is one of many Laravel packages they maintain.

It can be installed using composer via the following command:

composer require spatie/laravel-backup

It adds the following command to Laravel:

php artisan backup:run

It also offers other features such as notifications on backup as well as backups to multiple storage units.

Links:

GitHub repository

28 questions
0
votes
0 answers

Spatie/Laravel-Backup useSingleTransaction option not working

I have laravel 9 app using spatie laravel-backup version 8.1.7 with a MySQL 8 database. In my database.php I have added the dump key with option useSingleTransaction as follows but the generated dumpfile is still including LOCK statements e.g. LOCK…
adam78
  • 9,668
  • 24
  • 96
  • 207
0
votes
1 answer

Spatie\Backup\BackupDestination\BackupDestination::connectionError(): Return value must be of type Exception, null returned

I'm trying to backup Laravel to google drive, I'm using Spatie and masbug/flysystem-google-drive-ext and facing this problem.(it's working fine when taking backup in local.) main-error: Here is my…
0
votes
2 answers

What is spatie/laravel-backup password and how to overwrite It?

When I do a backup, we transfer It to another server and today I wanted to unzip to check the contents and It asks me for a password. I checked the config files, documentation, but I cannot seem to find where to find It or how to set It Package:…
Eligijus
  • 634
  • 1
  • 6
  • 15
0
votes
0 answers

laravel backpack repeatable type not working in backpack version 4.1

I want to clone same fields. SO, I am trying to using repeatable type but when I click on add button then no action is performed. backpack version : 4.1 CRUD::addField([ // Extra Features 'name' => 'clergy_discription', …
0
votes
0 answers

Spatie\Backup\Events\backuphasfailed::$exeption

I want to backup it's working in terminal but doesn't work when clicked button backup Rout::get("buckup", function (){artisan::call(backup:run))}
0
votes
1 answer

How to figure out my dump_binary_path in my device? Using spatie laravel-backup package for Laravel 9

I'm currently using the spatie laravel-backup for backup my database. But when I execute the command php artisan backup:run I get this error : Backup failed because The dump process failed with exitcode 1 : General error : The system cannot find…
0
votes
0 answers

Backup failed because The dump process failed with exitcode 1 : General error : The system cannot find the path specified. In laravel 8

Im trying to use spatie-Laravel backup to for backup my database in laravel , I follow the installation guide and tring to backup the files and the followign errors comes out Errors: Backup failed because The dump process failed with exitcode 1 :…
0
votes
1 answer

Spatie laravel-backup giving undesired file structure inside the output zip

I installed spatie/laravel-backup version 6.16 and haven't changed anything inside the backup.php file. When I do php artisan backup:run I got the timestamp zip, I don't know why but the inside of the zip file looks like this: (the inside of each…
Aditya Pratama
  • 657
  • 1
  • 8
  • 21
0
votes
1 answer

Automatic backup not working in Laravel with Spatie

I'm trying to run backup using cron, i'm using spatie-laravel-backup it is working when i run it manually but when i run it using cron using this path on server: /home/user/public_html && php artisan backup:run >> /home/user/logs 2>&1 and i'm…
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
0 answers

How to save just 5 recent backups in Spatie Laravel backup?

I have configured Spatie/Laravel backup in my application, and i have croned job for this on which it takes backup everyday automatically. But can I save just recent 5 or 10 backups of system? If new backup created then the oldest one should be…
Sajad Haibat
  • 697
  • 5
  • 12
0
votes
2 answers

Laradock mysqldump not found when executing artisan backup:run (Spatie Laravel Backup)

I have deployed a Laravel application with Laradock. I want to point out that the database connection works fine (users can register, login, ... etc.). In order to back up the application, I have installed the Spatie's Laravel Backup package. I set…
Pathros
  • 10,042
  • 20
  • 90
  • 156
0
votes
1 answer

Error while running artisan command from controller

while running below artisan command from controller works fine Artisan::call('backup:run'); but why this is not working Artisan::call('backup:run --only-db'); it throws error The command "backup:run --only-db" does not exist. through CLI it works…
Milan Tarami
  • 70
  • 1
  • 8
0
votes
0 answers

How to create folder (daily, monthly) backup S3 laravel when using spatie backup?

I use laravel v5.5 and use spatie backup v5 (https://docs.spatie.be/laravel-backup/v5/introduction). function backup is success. but when I check to S3, the path folder is myBackup/2018-04-29-01-00-07.zip. I want the backup path is…
Abed Putra
  • 1,153
  • 2
  • 17
  • 37
1
2