cancel
Showing results for 
Search instead for 
Did you mean: 

magento2.2 can't run system backup BUT will run database backup

magento2.2 can't run system backup BUT will run database backup

When I try to backup system I get "We can't create the backup right now."

I can however do a database backup

I have tried to exclude media file but same result. 

 

I have the same rights as always.. 

 

But I have moved the files from magento2 to rootfolder... 

 

 

4 REPLIES 4

Re: magento2.2 can't run system backup BUT will run database backup

You need to run below command to get system backup,

 

System backup included magento file system excluding pub/static and var directory.

 

php bin/magento setup:backup --code

After completed command one new folder generate inside root var/backups

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: magento2.2 can't run system backup BUT will run database backup

I have a brand new installation of 2.2.7

I tried the trick but it did not work

 

 

php bin/magento setup:backup --code
Enabling maintenance mode
Code backup is starting...
Warning: stat(): stat failed for /<homedir>/bin/.ea-php-cli.cache in /<homedir>/vendor/magento/framework/Archive/Tar.php on line 323
Disabling maintenance mode

 

Any ideas?

 

 

Re: magento2.2 can't run system backup BUT will run database backup

Hi Rakesh

Does this command 

php bin/magento setup:backup --code

 also backs up the database?

Thanks

 

Re: magento2.2 can't run system backup BUT will run database backup

I found the solution for this (for me anyway):

I found two folders with the same name in the same location, the only difference was the case:

 

/pub/static/frontend/TemplateMonster

/pub/static/frontend/templatemonster

 

I found these while trying download a copy using a sftp client as a couple of files came up as an error because they had already been downloaded (the sftp client isn't case sensitive)

 

Once the duplicate was removed the system backup worked 1st time.