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
5
votes
2 answers

Laravel 5.5 autodiscovery not registering

I'm installing the spatie\laravel-backup package. According to the instructions, I just need to composer require spatie\laravel-backup and the package should be recognized and auto-installed. It looks like this is happening: Generating optimized…
user101289
  • 9,888
  • 15
  • 81
  • 148
4
votes
0 answers

Using mysqldump command inside the Docker PHP container

I am new to Docker, and now I want to use spateie/laravel-backup package to backup my project and my database. I need to run the mysqldump command inside of Php container When I run the mysqldump command inside of DB container, I could use it…
Ebrahim Bashirpour
  • 717
  • 2
  • 10
  • 21
4
votes
0 answers

There are no files to be backed up spatie/laravel-backup

I'm trying to backup a gallery folder stored in storage/app/public/gallery so I added 'include' => [ base_path('storage/app/public/gallery'), ], to the backup config and run 'php artisan backup:run', it gives the error Backup failed because…
stalwart1014
  • 451
  • 1
  • 9
  • 29
4
votes
1 answer

Running artisan command from controller or route

I use Spatie Laravel package I can take backup by running this command php artisan backup:run but I want to take back up form admin panel and running this command form controller, I create a route and controller and in the controller, I do…
Nasser Ali Karimi
  • 4,462
  • 6
  • 34
  • 77
3
votes
0 answers

spatie laravel-backup - Successful Cleanup does not delete old backups

I am using "spatie/laravel-backup": "^6.16" in a Laravel 8 project. My cleanup setup is by default. I have the following schedules commands on My Kernel.php: protected function schedule(Schedule $schedule) { …
Taten
  • 31
  • 2
2
votes
0 answers

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

Hope you guys are well, I have a problem with spatie laravel backup package, When I am run this command php artisan backup:run Its show me this error Backup failed because The dump process failed with exitcode 1 : General error : The system cannot…
Tamim Ikbal
  • 33
  • 1
  • 6
2
votes
0 answers

The command "backup:run" does not exist. while executing command using controller

I'm trying to back up the system using an HTTP request(using a button). I've configured my codebase according to the laravel spatie documentation. When I tried to run the command php artisan backup:run in the terminal it executes just fine and…
Avishka Dambawinna
  • 1,180
  • 1
  • 13
  • 29
2
votes
1 answer

backup:run command throws generic error: ''mysqldump" is not recognized as an internal or external command

I would like to inform you that I have already looked at this problem. Most of the Answers suggested that I should correct the absolute path in config/database.php and I did, yet the problem remained. I am pasting portions of my config and backup…
Saif Kamal
  • 67
  • 1
  • 11
1
vote
0 answers

How to get the backup file name to store in database when making backup using Laravel spatie backup

$doBackUp = Artisan::call('backup:run --only-db'); return back()->with('success', __('Completed!The :x has been successfully completed.', ['x' => __('database backup')])); This is the backup file in storage>app>Laravel>…
Imtiaze
  • 43
  • 9
1
vote
2 answers

How to set the path of 'dump_binary_path' to backup database using spatie package in laravel 9?

I have a couple of docker containers for my Laravel 9 app (Nginx, PHP, MySQL, PHPMyAdmin, etc). I use spatie package to backup my database. I don't know how to set the path to the mysqldump file as it's in the docker container! I tried many…
Kmaj
  • 61
  • 3
  • 10
1
vote
0 answers

Laravel Backup to Dropbox Backup failed because Unable to write file at location

Hello I am trying to backup laravel to dropbox. I keep getting this error: Exception message: rmdir(C:\xampp\htdocs\careermove\storage\app/backup-temp\temp): Directory not empty Exception trace: #0…
Tula
  • 189
  • 1
  • 1
  • 7
1
vote
0 answers

The command "backup:run" does not exist

I have faced a problem when I am run the command from my code, My code is fine, I have test the code, Because when I run this Artisan::call('view:clear'); then its working, But when I run this Artisan::call('backup:run'); Browser told me: The…
Tamim Ikbal
  • 33
  • 1
  • 6
1
vote
1 answer

how to upload spatie laravel stored backup to google drive?

i am trying to upload backup on google drive using laravel spatie package i followed these steps https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011 my backup is created successfully g-drive is integrated successfully but when perform…
user14477068
1
vote
1 answer

Spatie backup using Artisan::call() unable to delete temp folder

Im able to create backup with files using Artisan::call('backup:run --only-files) many times, but when it comes to Artisan::call('backup:run --only-db) it can only do once. I noticed that the temp folder is not empty due to the saved db.sql has only…
i-faith
  • 449
  • 1
  • 3
  • 14
0
votes
1 answer

I cant configure google drive backup onmy Laravel Project

Im trying to setup a backup for my Laravel project using Spatie laravel Backup package but i cant install Flysystem adapter for Google Drive i get the error `- Root composer.json requires nao-pon/flysystem-google-drive ~1.1 -> satisfiable by…
Almas
  • 33
  • 1
  • 4
1
2