Support

Akeeba Backup for Joomla!

#9196 Need to keep 12 full backup, one by month?

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 Monday, 05 December 2011 06:29 CST

Chacapamac
I just want to know if this is correct.

I need to have 12 full backup without nothing becoming obsolete β€” One backup a month.

I have some difficulty to acheive that, I have always those obsolete files coming up and finally not having 12 fonctionnal backup through the year.

nicholas
Akeeba Staff
Manager
Doing that automatically requires that you use Akeeba Backup Professional and the day-based quotas. Essentially, you can tell Akeeba Backup to keep up to X backups (like count quotas) but always keep the backup from the Yth of the month. Usually it's set up to keep the last 30 backups and the backup taken on the 1st of each month.

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!

harrie
That's a good idea. It could be established when it is possible to add the month (or it's number 01, 02, 12) to the backup archive name.
For example: site-[HOST]-[MONTH]
When I upload this to dropbox, I have my monthly backup.

Nicholas, is it an option to put the [MONTH] variable in a next release?

nicholas
Akeeba Staff
Manager
Harrie,

This is actually included in Akeeba Backup for a very long time (I think I added that in version 3.1 or so). Take a look at https://www.akeebabackup.com/documentation/akeeba-backup-documentation/configuration.html#basic-configuration and you'll see that you have MONTH and YEAR in there, making it dead easy to create monthly backups.

Now that I think of it, here's a simple workaround with Akeeba Backup Core. the only downside is that you only get to keep yesterday's backup. Set the filename to site-[HOST]-[YEAR]-[MONTH] and turn off all quotas. I guess that's what you were looking for in the first place ;)

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!

harrie
Oops!

I didn't saw the [YEAR] and [MONTH] in the "tooltip" and supposed it wasn't supported.
Thanks again for the quick answer.

nicholas
Akeeba Staff
Manager
You're welcome! The tooltip deliberately only shows the most common tags, not all of them; otherwise it would be a pageful :D

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!

Chacapamac
I didn’t clearly state my question.
I understand for the automatism you need the Pro...

But... Can you do that with a cron whith the core version?

Say an administrator push the backup button one/two time a month, how can I assure that all those backup files will be good at the end of the year with no obsolete.

Now that I think of it, here's a simple workaround with Akeeba Backup Core. the only downside is that you only get to keep yesterday's backup. Set the filename to site-[HOST]-[YEAR]-[MONTH] and turn off all quotas. I guess that's what you were looking for in the first place ;)


I’m not to sure how to use this for what I need to do??



I try to have full control on what stay and what go in those file but I struggle for a good wild to acheive that.

I like Akeeba backup but if I have no control on how the backup file are stored on the server this is becoming relativly useless.

What I really want it}s when an admin make a backup it NEVER become obsolete (with maybe some limit on the size of all backups and/or the number of files.

Is those settings will work?





nicholas
Akeeba Staff
Manager
You can have automated backups with the Core release. Just take a look at the "Automating your Backup" section of our documentation. As it reads under "Front-end backup, for use with CRON":
This option is available in both the Akeeba Backup Core and Akeeba Backup Professional releases. You don't need to subscribe to the Professional edition to use it.


Regarding what you need to do:
- Go to Configuration
- In the archive name enter site-[HOST]-[YEAR]-[MONTH]
- Disable ALL quota settings. All of them! Uncheck their boxes.
- Save. Done.
That's all. The file name will take care of keeping the correct backup. Let me help you with that. During December 2011, the file name will be site-www.example.com-2011-12. This will happen on December 1st, December 2nd, December 3rd, ..., December 31st. On January 1st, 2012 the new filename of the backup will be site-www.example.com-2012-01. The same on January 2nd, 3rd and so on.

Since there is nothing telling Akeeba Backup to remove the old backup archives, the site-www.example.com-2011-12 will contain the backup of your site as it was on December 31st.

And so on.

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!

Chacapamac
I want to thank you for your patience with us, gods of Akeeba, our simple minds, sometimes, cannot grasp the depth of your thoughts.

:)

- In the archive name enter site-[HOST]-[YEAR]-[MONTH]

The file name will take care of keeping the correct backup.


here, I’m not to sure to understand...

QUESTION: Is the backup name itself have an importance in the process other than keeping each files names different and recognizable?

E.g.
If I have a cron that go one time every month, say the first of eachmonth, and the name of the file will be β€”>

Backup-[HOST]-[MONTH]-[YEAR]

Is that will make a difference in the frequency of the backup compare to the name site-[HOST]-[YEAR]-[MONTH]

nicholas
Akeeba Staff
Manager
I exercise my patience daily, but you are one of the people who do understand what I say and do follow my instructions, so I have no problem giving you as much details as you request :)

Here is what I mean by the file name. For simplicity's sake, let's pretend that the name of your backup archive is set to "test". Every time you start a backup, manually or automatically, Akeeba Backup will try to create the backup archive file "test.jpa". Since the filename is always the same, every new backup will overwrite the previous backup. You are overwriting an existing file.

Now, let's take it to the next level. Let's name the file "test-[MONTH]". The [MONTH] part is being replaced by the two digit representation of the month. For every backup taken in December, the name of the backup archive file will be test-12.jpa (12 = December). This will be true for a backup taken on December 1st, December 2nd, December 3rd, ..., December 31st. So, all the December backups will be named test-12.jpa. The last backup with this name will be the backup taken on December 31st.

When January comes, the filename changes to test-01.jpa (01 = January). So, what happens on January 1st, is something awesome! You no are not overwriting the backup archive created in December. Therefore you can know with absolute certainty that the file test-12.jpa contains the last backup taken on December, therefore the backup of December 31st.

So, we are abusing the backup archive name to create a poor man's versioning system. You can not keep the backup from the 1st of each month, but you can automatically keep the backup from the last day of each month. Pretty close, huh?

There is no additional "magic" to the filename. The filename controls nothing except, of course, how the backup archive will be named :)

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!

Chacapamac
Understood
Thanks

nicholas
Akeeba Staff
Manager
You're welcome! If you have any more questions, feel free to ask :)

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!