Support

Site Restoration

#38813 Output Directory Suggestion

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
8.2.7
Kickstart version
n/a

Latest post by dhillock on Friday, 31 March 2023 08:48 CDT

dhillock

I searched the site to a place to leave a suggestion, but did not find anything, so I hope that leaving it here is okay.

 

I have a website with two installations - production and development. In both Akeeba Backup configurations I've specified a custom Output Directory - as you recommend.

When I restore production to development, I need to remember to update the Output Directory, and if I don't, the development backups are stored in the production Output Directory. 

It would be nice if when the restore was being done, and if the Output Directory is not the default, there was an opportunity to specify the custom Output Directory, before the restore was finalized.

When a restore is being done, and near the end, there is an opportunity to set the htaccess file to default, or not. That might be a good place to enter the custom Output Directory.

Thank you for listening.

David

nicholas
Akeeba Staff
Manager

The problem with that is that you always need to strike a balance between being able to reconfigure as much as possible in the restoration interface and not making it overwhelming / impossible to find what is important. Changing the output directory is not one of those super important things as it can be done post-restoration without adverse effects (unlike, say, your site sending email which can indeed cause big problem with your clients if the site starts emailing people before you're 100% sure it's fully set up and tested).

Moreover, the output directory supports all of the variables you can use in backup archive naming, including [HOST]. Do you see where I am going with that?

In the simplest scenario, your production is www.example.com, whereas your development site is dev.example.com. Their root folders will be on the same folder level, right under your hosting account root. If you create a third folder, let's call it backups, on the same level you can now have the folders backups/www.example.com and backups/dev.example.com one level above each respective site's web root. This can be expressed as [ROOTPARENT]/backups/[HOST] in the Output Directory option.

So, now you have a site which automatically switches between live and dev backup output folder upon restoration, no need to do anything else.

I think this is a far neater solution than reconfiguring yet another thing during 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!

dhillock

Elegant solution - 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!