cancel
Showing results for 
Search instead for 
Did you mean: 

There are both var and var1 folders in my directory (Magento 2.1)

SOLVED

There are both var and var1 folders in my directory (Magento 2.1)

I've just checked my directory and it shows both var folder and var1 folder.

The contents look similar. I need to remove one of them in order to reduce space but I'm not sure which one is being used by the system and which one is not.

Any ideas why this happened and how I can find out which one to remove?

Thoughts gratefully received

Any more questions please let me know

Thank you for your help,

Dan

[Magento 2.1/Siteground hosting]

1 ACCEPTED SOLUTION

Accepted Solutions

Re: There are both var and var1 folders in my directory (Magento 2.1)

Hi @simonsmithWOS,

 

A default instance will have the var directory on your Magento's root directory.

/var1 isn't a default directory so should be fine to think that there is a copy created for somebody with access to you your server.

 

Maybe you want to create a tar backup using this command from your Magento's root path:

 

tar zcvf var1.tgz var1

Then you should be able to delete or move the var1 directory.

View solution in original post

2 REPLIES 2

Re: There are both var and var1 folders in my directory (Magento 2.1)

Hi @simonsmithWOS,

 

A default instance will have the var directory on your Magento's root directory.

/var1 isn't a default directory so should be fine to think that there is a copy created for somebody with access to you your server.

 

Maybe you want to create a tar backup using this command from your Magento's root path:

 

tar zcvf var1.tgz var1

Then you should be able to delete or move the var1 directory.

Re: There are both var and var1 folders in my directory (Magento 2.1)

Awesome,

Thank you for replying Damien. This does seem to be the case, it must have been a copy done by one of the hosting team to solve another problem, only they didn't tell me about it.

THANK YOU SIR!