Support

Akeeba Backup for Joomla!

#38207 Moving Joomla 4 from dev site to live site with Joomla 3 on it

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Wednesday, 21 December 2022 01:59 CST

derekk
  1. Hi Nicholas,   I have a working Joomla 4 version of my site on https://devnov.ontariofitnesscouncil.com/  Joomla 4.2.6   I now want to move it and replace what I have on my live site https://www.ontariofitnesscouncil.com/ Joomla! 3.10.11   I dont want to repeat the work on the live site of course so I want to use Akeeba backup  .jpa file and kickstart 

    I typically do the following steps:
    • On launch day  turn live site offline
    • export all the tables from the dynamic or live components to my pc
    • OS membership pro
    • Jomsocial
    • Joomla users
    • Import them to the dev site
      Backup (bup)
    • bup the dev site
    • bup the live site
    • download both backups to my pc and or dropbox
      Import backup from dev site using one of these methods
    • delete all folders and files on the live site 
    • Import the dev backup from my pc
    • move the dev backup from my live Akeeba backup folder to the public html of the live site
    • export the dev backup from my dropbox backup folder to my pc then ftp to the public html of the live site
    • use the Akeeba import archive and restore any of the jpa files from any of the 3 sources referred to above that I imported to my pc
      In the restoration steps
    • Make sure I am using the dev database
    • use the live site url in the restoration and configuration file
    • change the tmp and log paths to match the live site path
     
    • I then clear the cache in both Joomla and siteground
    • Turn on the mail in the Joomla plugin
    • May have to remove the index suffix from the path
      Verify function and content
    • Turn live site online
    • monitor usage and error logs closely
      My ultimate question becomes what is the best method, based on accuracy or expediency? Are my typical methods flawed or is there a better method? I am aware of your warning about using a browser for any of this process and that makes me think that restoring Dropbox  backups is flawed and a poor method. And I use dropbox for post processing 

    Thank you

nicholas
Akeeba Staff
Manager

It's generally good. Some notes:

> use the live site url in the restoration and configuration file

No. The live site should be EMPTY. It's only there for very specific servers with a broken configuration. You don't have one of these. Empty it and leave it empty.

> Turn on the mail in the Joomla plugin

You can disable email sending in Joomla's Global Configuration. This setting can be managed at restoration time in the Site Setup page.

> I am aware of your warning about using a browser for any of this process

I have said you should not use a browser to download files from your site. You don't do that, so why are you worried?

Using Dropbox is just fine a method as any. If I didn't think that Dropbox can be reliable enough for backups I wouldn't implement a connector to it. Also keep in mind that when a previously reliable method becomes unreliable I will remove it without a second thought (as I did a couple of years ago with pCloud).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

derekk

Thanks for the clarifications Nicholas
The first time I have heard anyone explain the l;ive site field in the configuration.php file with any accuracy
Is there a list of servers that dont work somewhere for this field?

This is the method I think would be the best one
I have done a few with this method and if I recall corectly then I dont need to delete the live site folders and files
I can choose the dev site database since its on the same server 

  • export the dev backup from my dropbox backup folder to my pc then ftp to the public html of the live site
  • use the Akeeba import archive and restore any of the jpa files that I imported to my pc

    I have done a few with this method and if I recall corectly then I dont need to delete the live site folders and files
    I can choose the dev site database since its on the same server 
    I cant recall if the restoration script does choose the dev site database automatically

    One other question comes to mind for post restoration, if it fails or I want to restore the previous live site is there a method to do that
    I assume when I do the restoration it will overwrite all the Akeeba backups that were there and replace them with only the ones from my dev site?
    If thats accurate then I would need to ensure I download the original backup from the live site to my pc prior to the restoration  I could then use it to revert back?

    Thank you 





nicholas
Akeeba Staff
Manager

> Is there a list of servers that dont work somewhere for this field?

No, it actually has to do with the server configuration.

By default, all web servers (Apache, LiteSpeed, IIS, NginX, …) forward the Host HTTP header to PHP. This is the header sent by the client trying to access your site and has your site's domain name. This is used by Joomla to determine the domain it is running on.

Some servers are configured to not forward this, in a wrong attempt to address the issue addressed by Admin Tools' Allowed Domains feature — check its documentation to understand the problem. These servers won't work without setting the $live_site. They were incredibly rare in 2001 when this feature was introduced; think about one in 100,000 or less. They are even more rare now.

> I have done a few with this method and if I recall corectly then I dont need to delete the live site folders and files

As long as you stick to the same Joomla version family (major and minor version, e.g. 4.2) and you do not remove or update any extensions: you don't need to delete anything. If you changed the Joomla version family and/or removed or updated any third party extensions you'll need to delete existing files and folders. Remember that extracting the backup can only add and overwrite files; it will not remove files by default.

> One other question comes to mind for post restoration, if it fails or I want to restore the previous live site is there a method to do that

Using Kickstart. It's documented and we also have video tutorials (Restoring on Any Site).

The whole point of an Akeeba Backup archive is that if your server burns down —as it literally happened with OVH a couple years ago!— all you need to restore your site is the Akeeba Backup archive and the free of charge Kickstart you can download from our site. Akeeba Backup was designed as a site transfer and disaster recovery tool from its very beginning in 2006, when it was called JoomlaPack.

> I assume when I do the restoration it will overwrite all the Akeeba backups that were there and replace them with only the ones from my dev site?

Backup records? Yes. Backup files? No.

Hint: you can always completely exclude the #__akeebabackup_backups and #__akeebabackup_profiles tables from the dev site's backup profile. Restoring the backup with the same database table name prefix you were already using on your live site will not delete or replace the contents of these tables which hold the backup records and backup profiles respectively. Therefore you're not losing your backup definitions and backup history upon restoration.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!