Support

Akeeba Backup for Joomla!

#9015 F T P folder by date

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Thursday, 25 August 2011 12:22 CDT

rolandd
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? Yes https://www.akeebabackup.com/documentation/akeeba-backup-documentation/data-processing-engines.html#postproc-ftp
Joomla! version: 1.5.23
PHP version: 5.3.6
MySQL version: 5.0
Host: (optional, but it helps us help you)
Akeeba Backup version: 3.3.3

EXTREMELY IMPORTANT: Please attach your Akeeba Backup log file in order for us to help you with any backup or restoration issue.

Description of my issue:

This time no issue ;) The Akeeba backup spins like a kitten and I am very pleased with it. Good job.

What I cannot seem to find and it might be a feature request is how to set Akeeba to create a folder on my FTP server per backup. Since I export to an FTP server I let Akeeba create the archive in split files, getting one backup a day in this folder will create quite the mess, so I was looking for a way that Akeeba creates a folder based on the date and put the files in there.

Is this possible and if not, can you consider it as a feature request?

Home of RO CSVI and RO Payments https://rolandd.com

nicholas
Akeeba Staff
Manager
Hi Roland,

This feature is not implemented for practical reasons. In order to implement that feature, we'd have to accept the initial directory being an inexistent path. Then we'd have to start trying from the root folder upwards, creating directories as we go. And now the practical problems:
1. What if instead of private_ftp/mysite/[DATE] you mistakenly typed public_html/mysite/[DATE] ? What would happen is that the mysite directory and the date-based directory would be created in public_html, made available through the web and probably indexed by search engines. That would have made you a sitting duck. Instead, without the proposed feature, having public_html/mysite instead of private_ftp/mysite would cause an error, as the "mysite" directory would not be present in public_html.
2. The Test FTP Connection would be unreliable. If we kept on checking the existence of the initial directory, we'd end up creating a new directory every time you pressed that button. Otherwise, we'd have to not check for the initial directory, causing potential issues at backup time.

Regarding your concerns, any half-decent FTP client can sort the filenames alphabetically. Given the default timestamps in the file names (in the form YYYYMMDD-HHMMSS, eg 20110820-001501), sorting alphabetically allow you to easily locate the archives you need by date and download/delete them.

Therefore, since the practical issues from implementing that feature are greater than those of not implementing it, I decided to leave it out.

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!

rolandd
Hey Nicholas,

I understand your reasoning however I was thinking of a must more simpler implementation. Nothing changes in the settings as it is now only a yes/no option to add that says, store backups in date stamped folder. When the archive file(s) is/are moved to the FTP server, the date folder is created in the set location and the files are stored in the date folder.

I believe this goes around all the issues you described. Sure I agree sorting the filelist is also a way of doing it, I do find date stamped folders more cleaned up :) Call it my pet peeve :P

Home of RO CSVI and RO Payments https://rolandd.com

nicholas
Akeeba Staff
Manager
I thought about that -hence the delayed reply- and decided against it. The FTP code is used in various other places, including the Site Transfer Wizard. Adding an ad-hoc option to the FTP engine would create many instances of deep magic code in the rest of the component. Yes, it would work, but it would add a level of unmaintainability and inflexibility to the code that really bugs me. So, until I find a good way to work around the architectural and functional challenges, I am not going to implement that feature.

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!

rolandd
Thanks for your explanation as to why you won't implement it. Since I am burned to get it working as I like I will build my own script that will create the date stamped folder and then update the profile information with the new FTP folder. This way Akeeba does not need any coding changes and I can create the folder names as I like :)

Having looked through the code I can't seem to locate where encode/decode the configuration string. Would you mind pointing me in the right direction?

Thanks.

Home of RO CSVI and RO Payments https://rolandd.com

nicholas
Akeeba Staff
Manager
Each post-processing engine is two files: one PHP file with the actual code and one INI file defining the settings. Just take a look inside administrator/components/com_akeeba/akeeba/plugins/engine/proc and look at ftp.ini and ftp.php. I think it will be very easy to understand what you need to do ;)

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!

rolandd
Thanks for the heads up Nicholas :) I will let you know my success rate ;)

Home of RO CSVI and RO Payments https://rolandd.com

nicholas
Akeeba Staff
Manager
If you get stuck, post back. I'm here to help :)

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!