Support

Site Restoration

#38978 restore production site to dev server

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
7.4
CMS Type
Joomla!
CMS Version
3.10.11
Backup Tool Version
latest
Kickstart version
n/a

Latest post by tampe125 on Tuesday, 16 May 2023 02:01 CDT

derekk
I want to make a new recent backup of my production site  on my dev server to replace the old outdated dev site on the dev server Since the dev site was made there is now a  subdomain site created called devprod.dev2.suntech.halmacloud.com it is a copy of the production site before we started modifying it We use it as a comparison and still need it . Therefore I cant just delete all folders in the dev2 and restore a copy of the production site on the dev server that would erase the copy of the production site because that is where it exists.   To bypass this issue and also separate the dev site completely from the other subdomains I wanted to restore a recent copy of the production site on the dev2 server in a new subdomain for example called dev3.suntech.halmacloud.com    The dev2 server wont allow me to create a new subdomain because dev2 server reports  I have reached maximum amount so I cannot restore there which would be typical and quick Now I have to manually select the dev2 folders and delete them  I currently have a bup of dev2 from yesterday on my PC and in dev2 server akeeba backup folder  and in root of dev2 folder. If I did use Akeeba to restore the recent Akeeba copy of the production site on dev2  I would need to  delete only dev2 folders in public_html
Then if I restore it with backup from Akeeba it will overwrite or disturb the other subdomain folder called devprod.dev2.suntech.halmacloud.com?   Do you know of a way to do this  or a way to restore without creating a new subdomain?

Thank you

tampe125
Akeeba Staff

Hello,

first of all, when you're restoring a backup there's no need to delete all the existing folders, unless you're installing a different version of Joomla (ie Joomla 3 on top of Joomla 4 or viceversa) or you're downgrading the existing installation (ie installing Joomla 4.1 on a Joomla 4.3 site). In those cases you have to delete everything since Joomla will move and delete some files in newer versions, if you do not start from a blank state you will have issues.

That being said, if I got it correctly (your ticket is missing all the punctuation so it's a bit hard to understand), your problem is that you do not have enough space on your server. My suggestion is to take a backup of all your dev sites, store them outside your server (ie locally or upload them to a cloud storage engine), delete some dev sites to make space and then restore them.
I suspect you might have some cruft that has been accumulated over time, like old logs, old backups or full copies of your site

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Thanks Davide
Sorry about lack of punctuation and thanks for pointing that out to me.

If I restore the most recent copy of our prod site using Akeeba to first import the archive then restore will it overwrite or disturb the other addon/subdomain sites and folders currently on the dev server? I show this in the screencap attached

My problem is I cant separate the dev site from the other test sites because my host cpanel says I used the maximum. So I have to restore with the ones I have.

I have stored them above the public-html folder and also on my PC

Thank you

tampe125
Akeeba Staff

Hello,

even if using a different subdomain is always the best option, you can restore your new site inside a folder of an existing site. You can even use the same database of another test site, as long as the table prefix is different.

You will end up with something like this:

test.example.com
test.example.com/restored

Joomla is clever enough to avoid storing absolute paths, so every site is contained in itself

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Davide thats not really an answer to what I am  asking or what I am most concerned about


If I restore the most recent copy of our prod site using Akeeba to first import the archive then restore will it overwrite or disturb the other addon/subdomain sites and folders currently on the dev server?

My problem is I cant separate the dev site from the other test sites because my host cpanel says I used the maximum. So I have to restore with the ones I have.

Thanks

tampe125
Akeeba Staff

Hello,

it depends if your main site is backing up your dev sites as well. Take the production backup and restore it locally. If you see the folders where the dev sites are stored then, restoring that backup of the main site would break the dev sites. Same thing if you're using the same database for all sites and you're backing up all sites' databases.

I would also recommend to back up all dev sites and keep a copy of these backups locally, in case anything bad happens.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

I would be restoring only ev2 site with a backup that only has dev2 in it.
I am restoring it to the dev site by importing an archive in Akeeba
Then deleting all folders in the directory of dev2 

Using restore button in Joomla Akeeba backend to replace original dev2

Will the process described above   overwrite or disturb the other addon/subdomain sites and folders currently on the dev server?

tampe125
Akeeba Staff

No, no other sites will be affected.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!