Support

Akeeba Backup for Joomla!

#22360 Auto delete old backups from remote ftp

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 tampe125 on Friday, 27 March 2015 07:34 CDT

sintos
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 2Mb, please upload it on your server and post a link to it.

Description of my issue: I am already taking backup of my sites to a remote FTP. What i would like to do is make this procedure automated. I have checked the procedure regarding the cron jobs that i need to set up and it seems to work fine.
My problem is that the backup FTP server has limited space and therefore i can't keep a lot of previous backups, and since i have almost 20 webistes that i take backups, you understand that i can't login to the backend and remove the old backups manually from "Manage remotely stored files".
So the solution to this would be to setup a limit of backups to keep in the remote server and the older ones to be removed automatically. Would that be possible?

tampe125
Akeeba Staff
Hello Yannis,

yes, you can do that, please take a look at the option Enable remote files quotas inside the Quota management page

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sintos
In the Quota management documentation, you mention that it only works with cloud services that support remote deletion. Does it also works with remote ftp server ?

sintos
I have just set the quota to 1 backup file, and tried it, and it doesn't work. It doesn't delete the older ones.
Is there a way around it ?

tampe125
Akeeba Staff
While using the FTP post processing engine, we are asking the remote server to delete the server.
If there is a problem with permissions and/or ownership, our request could be denied from the remote server.
In such case there's nothing you can do, you have to delete it manually.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sintos
I am not sure its a permissions issue, since it can write quite well in the server and secondly other remote backup scripts work quite well in this server.
Since i am not the root of the server i will ask my host to check the log files to see if they can find something and i will keep you informed.
Would it be a case that something else is wrong except from permissions ?

tampe125
Akeeba Staff
ok, keep me informed.
The reason should be on the remote server, since we are using a one line command to ask the server to delete the file...
It's quite simple, after all ;)

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sintos
The most strange thing is that if i do it manually through the Joomla backend it is working quite fine. The files are deleted without a problem.
Is that an indication that is should also work through quota management ?

tampe125
Akeeba Staff
Can you please post the screenshot of your remote quota management?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sintos
Here it is:

tampe125
Akeeba Staff
You have to check the option Enable remote quota, as I previously wrote.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sintos
Problem solved.
Thank you so much.

tampe125
Akeeba Staff
You're welcome!

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
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!