cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.0, code backup error related to symlinks

Magento 2.3.0, code backup error related to symlinks

Hi there,

 

I'm experiencing an issue regarding code backup in Magento 2.3.0. When I run the command php bin/magento setup:backup --code --media --db, I get the following warning which stops the process.

 

Warning: stat(): stat failed for /home/<dir>/public_html/bin/.ea-php-cli.cache in /home/<dir>/public_html/vendor/magento/framework/Archive/Tar.php on line 323

 

I noticed that each time when I run the previous command, a new symlink is created in public_html/bin, named .ea-php-cli.cache. I successfully deleted this folder, but each time I run the command, same thing happens. 

 

Also, "Allow Symlinks" has "No" as value in backend. 

 

What's the issue and how can I fix it so that I can backup my site?

1 REPLY 1

Re: Magento 2.3.0, code backup error related to symlinks

If I create a directory named ea-php71 inside the bin directory, the backup works, but it's not a viable solution for the future. 

 

As I said, even if I remove the .ea-php-cli.cache directory, the backup isn't working because it regenerates that directory again and again.