InternetFacilito's avatar

Backup with Spatie does not work on Windows.

Hello. I'm trying Spatie to create a backup from a controller and it only works when I try to create a copy of only the files, but if I try to create a database copy an error occurs. However, from a console the copy of the files and the database is created correctly.

I think it may be due to not having access to mysqldum.exe or something, since at first I couldn't create backups from the console until I added the path to mysqldump.exe to the environment variables.

I am using Windows and XAMPP for development.

Does anyone have an idea what the problem is?

Edit: Sorry, I can't upload images. You can see the screenshots on Facebook: facebook dot com/groups/laravelesp/permalink/7470589049661800/

0 likes
6 replies
InternetFacilito's avatar

@Thunderson Sorry, I can't upload images. facebook dot com/groups/laravelesp/permalink/7470589049661800/ I have a post on Facebook if you like to see it. In any case, here I leave the screenshots. I don't know what the error is, I just receive the non-zero code and that means that the process is not carried out satisfactorily.

Thunderson's avatar

@InternetFacilito i do not have facebook account, show the code by copy paste it and explain where is the problem. now it is more difficult to helping you

InternetFacilito's avatar
Level 1

Excuse me friend, it is already working correctly. It must have been that the system needed to be restarted or something like that for the environment variable to be updated or I don't know what happened. I had restarted Apache many times and it didn't work. And just now that I was trying to make adjustments to place the code here, the creation of backups with the databases is now working correctly.

Thanks for responding to my post.

Please or to participate in this conversation.