Support

Akeeba Backup for Joomla!

#37906 Would it be possible to save the S3 details in the import from S3 in the same way we do with the backup details?

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
4.2.3
PHP version
8.1.11
Akeeba Backup version
9.3.3

Latest post by UglyEoin on Friday, 21 October 2022 07:58 CDT

UglyEoin

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

Just as a side note I clicked the "help" button when on the manage backups > restore from S3 and it looks like there's a typo in the URL

https://www.akeebabackup%20.com/documentation/akeeba-backup-joomla/import-s3.html

 

In the configuration I have saved my S3 details so I can use a backup.  

However, in my import details I have to enter it each time, which is not too difficult, but is an additional step.  I often work on my dev site and then want to import the new backup to live.  Would it be possible to save those details in the import from S3 tab too?

Unless there is a better way to restore a backup?  This way seemed about the same as saving one locally and transferring it but I have to remember to delete the local backup after I FTP it to the live site.

nicholas
Akeeba Staff
Manager

Thank you for the documentation link, I will fix it.

Regarding your question, let me go backwards — I promise, it makes sense. When you go to Manage Backups and you have a backup record you want to restore but the file is on S3 you can click on the Manage Remote Files button and click on the button to fetch it back to your site. That's the intended way to use archive files stored on S3.

Then, what is the Import from S3 for? There are two use cases I had in mind.

One is that you have deleted the backup record i.e. it no longer appears in the Manage Backups page. In this case you need to go and fetch the archive from S3. While you could do it manually on your computer, then upload it to your server, then use Import it made a bit more sense to have it all done in one go, especially given the fact that S3 is considered the remote storage option for backup archives in Akeeba Backup.

The second use case is that you've backed up your site on S3 and you have a new hosting account with Joomla pre-installed. Instead of having you remove the site, upload Kickstart Pro, import the archive from S3 using Kickstart blah blah I let you just install Akeeba Backup Pro, use Import from S3 to import the backup archive and use the integrated restoration. This use case made a lot of sense in 2010 when mobile devices couldn't do FTP / SFTP very efficiently (and iOS didn't have local file storage at all). Nowadays? I guess it still kinda makes sense but it's not that much different to do even from a mobile device — I have certainly done that with an iPad Pro using nothing but Transmit and Safari on it.

In short, Import from S3 does not really have a very good use case. It made far more sense 11-12 years ago when I needed to transfer sites between hosts using an iPad and couldn't really manage files locally. Nowadays its utility is questionable but some people have integrated into their workflows so I won't remove it for the foreseeable future.

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!

UglyEoin

I guess that makes sense.  I'd still really love an even easier way, perhaps if we could store the SFTP details and move things that way.  You're right though, it's not very difficult and I thank you for making it this easy.  

A second question if I may, sometimes the kickstart has prepopulated the config information but sometimes I have to type it in.  Is there a way to use kickstart to populate the data from the config file every time?

nicholas
Akeeba Staff
Manager

SFTP and FTP are not very good choices for transferring files between servers. First of all, not all servers support downloading a specific range of bytes. If this feature is unavailable you end up with a PHP timeout trying to import the files. Moreover, our experience is that people are far more likely to get confused setting up the FTP / SFTP connection information and hosts are far more likely to block FTP / SFTP connections to the outside world than they are blocking HTTPS requests (what Amazon S3 uses).

Also keep in mind that Kickstart Professional does offer an Import from URL and an Import from S3 feature. The former may work great for you in lieu of import from FTP/SFTP. Put the files in a web accessible folder and give Kickstart the URL of the .jpa, .jps or .zip archive. It will download all archive parts into the server it's running on. 

> A second question if I may, sometimes the kickstart has prepopulated the config information but sometimes I have to type it in. Is there a way to use kickstart to populate the data from the config file every time?

Kickstart only extracts the backup archive and does not pre-populate anything.

ANGIE is the backup restoration script.

ANGIE does populate its fields from the configuration except for the database information. The database information, as documented, will only be populated if you are restoring to the same location as determined by the full domain name (subdomain(s), domain, TLD). If you are restoring to a different location it will be empty by default. This is intentional. There is a very large number of people who thought that ANGIE could magically reconfigure their database server with the same hostname(!), username, password and database name when, in fact, it is the user who has to provide this information. Therefore, when you are likely to need to enter different information than what is stored at backup time you get blank fields in the database restoration page.

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!

UglyEoin

Thanks for the suggestions and information, much appreciated.

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!