Support

Akeeba Solo

#40582 Feature request - UNiTE XML generator

Posted in ‘Akeeba Solo (standalone)’
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
Akeeba Solo version
n/a

Latest post by nicholas on Tuesday, 16 April 2024 02:27 CDT

carcam

Hi,

I use a lot Akeeba Solo and I have managed to create a good workflow that allows me, not only backing up my sites, but also restore them with Akeeba UNiTE for testing in my development server.

I usually store my backups in a S3 provider, so it is kind of easy to just fetch de file using the S3 downloader of UNiTE and let the process working unattended.

 

The only point which I find a bit cumbersome is writing the XML file for UNiTE, specially since I use a random keyword in the name of the files.

I think it will be great to have a button next to the "download" button or inside the info box, that allows you to download an XML file that you can feed directly in UNiTE with all required parameters (S3 keys, bucket, path, filename...)

Best!!

nicholas
Akeeba Staff
Manager

That would be confusing. People don't understand that in this case they must edit the file to provide database connection information and so on.

Instead, remember that UNiTE and Akeeba Backup are specifically made for automation, and I mean automation the One True UNIX Way: chaining simpler commands to achieve a far more complex result.

UNiTE can also work with JSON and YAML files. Akeeba Backup has a CLI which lets you list the names of the backup archives. The output of that command can also be JSON. Ansible can read JSON and write JSON and YAML. Therefore, you could use Ansible to create a UNiTE JSON or YAML file from a template. This is great for devops automation which I think is what you're looking for.

Another possibility is to use s3cmd to list the contents of the S3 bucket. Use awk to extract the latest base filename. Now you can use whichever tool you want, even sed, to edit in-place the UNiTE XML, JSON, or YAML file (in this case, XML would be easier). This is great for continuous restoration of the latest nightly backup without having to communicate with the site the backup came from.

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

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!