Support

UNiTE, Remote CLI, eXtract Wizard

#31430 using UNiTE to restore backups for verification purposes, realistic?

Posted in ‘UNiTE and Remote CLI’
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
n/a
Tool
UNiTE
Tool version
n/a

Latest post by on Monday, 22 July 2019 17:17 CDT

chuck
I'm thinking about using UNiTE to restore backups to verify the validity of the backups.

Before I spend sometime learning the system, maybe you kind gentlemen can give me your opinion if it is pragmatic idea.

I use akeeba Joomla pro and Solo pro to backup a number of websites. The idea is to have a UNiTE installed on a server that will fetch S3 backups of these sites and install the latest backup on the UNiTE server using subdomains that differ from the domain of the original sites. On a schedule (trigger by cron, hopefully) they will all be restored to have someone log into the restored backups to make sure everything is working as it should.


Does this sound like a realistic use of UNiTE?

nicholas
Akeeba Staff
Manager
Absolutely yes!

Not only it's realistic, I do it myself for years. All my sites take at least daily backups on Amazon S3. Early in the morning a CRON job runs a Bash script which uses s3cmd to download them to my NAS for archiving and also create a copy of that latest versions in a standard location, with a predictable name.

Another computer on my network runs another CRON job about 30' later to fire up UNiTE. Since the NAS is mounted via NFS to the computer, as far as PHP (and UNiTE) knows the latest backups are local files in a predictable location and a predictable name. So it just goes ahead and restores those backups.

The restored sites are used for development and testing. In fact, to prevent repetition of past mistakes, I use the extrafiles and extrasql sections of UNiTE to change the graphics and colors of the template to remind me that I'm on a test site (don't wanna mix this with the live site!) and disable things like email and other 3rdparty service integrations on the restored site.

But I digress.

The thing that you were missing when considering your use case is how you can download just the latest backup from S3. This can't be done with UNiTE itself but it can be scripted with Bash using s3cmd and awk.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!