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 Friday, 21 June 2024 01:36 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!

carcam

Hi Nicholas,

thank you very much for your reply!! I have not played with Ansible yet, but I definitely will take a look at this and having the option of a JSON reply definitely makes things easier even for my own scripting.

I use s3cmd for a "remove remote old backups" system (for backups taken on 1st older than 6 months for instance) and I am not confortable with how to create my own scripts with it.

In any case I think I will take advantage of all the great remote tools you provide.

Thanks!!

 

 

 

nicholas
Akeeba Staff
Manager

You're welcome!

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!

carcam

Hi Nicholas!!

I'm starting to work on this, and the main idea is to set up some scripts that can get some PrestaShop to my development server. My architecture is as follows:

 

1. Dev server with Akeeba Remote installed

2. Several hosts configured in the .akeebaremote file

3. All PrestaShop with Akeeba Solo installed and with all the backups stored in Wasabi (S3 storage provider).

 

I have managed to connect Akeeba Remote with my Solos, and it works great!! I have even added the end point instead of the solo URL and it gets the backups, and it seems to work fine. Nevertheless, I have one issue. With Akeeba Remote I cannot get the name of the file to get from the Remote Storage (the What was it called? thing). So the only option to get the backup is to create a backup on the go.

Do you think it would be possible to add the filename of the backup to the backup info? I think I will be able to make my automatic restoration possible using this.

 

One little bug on the documentation: At the Options list the listbackups command parameter to limit the number of backups is limit not to.

 

Best!!

nicholas
Akeeba Staff
Manager

Thank you for the documentation issue, it's getting fixed not.

Try the newly released version 3.1.1.

Tip: For easier processing, use -m --json with listBackups or backupInfo. I added this for use cases like yours ;)

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!

carcam

Thank you very much Nicholas!!

 

I have been able to rattle some basic scripts to automate the process.

 

Best!!

nicholas
Akeeba Staff
Manager

Awesome! I am glad to hear that :)

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!