Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage backup retention #2

Open
prigal opened this issue Oct 1, 2014 · 3 comments
Open

Manage backup retention #2

prigal opened this issue Oct 1, 2014 · 3 comments
Labels

Comments

@prigal
Copy link

prigal commented Oct 1, 2014

Hi,
I found your script this morning and started using it (filesystem version). It's ok, I just have to put the command line in my hourly/daily/weekly/monthly to keep several versions of my database.

But, have you written any script to define a strategy on backups, like :

  • Keeping last X hourly backups
  • Keeping last X days backups
  • Keeping last X week backups
  • Keeping last X month backups

That will save me some time on writing it :)

Thanks for your work.

@deviantony
Copy link
Owner

Sure, I have my own scripts for backup retentions in my company, but they depend on our backup policy and mainly use the find command to remove the useless backups.

@deviantony
Copy link
Owner

This question raises another one in my head: should the backup retention be implemented inside this project? For the moment I can say:

Pros:

  • It would centralize all the requirements for backups inside the same toolset.

Cons:

  • Backups retention strategies are various, it would be complicated to support all of them.

I will let this issue open and continue to think about it.

@deviantony deviantony changed the title Script for cleaning old backups ? Manage backup retention Dec 4, 2014
@jalogisch
Copy link

Hej,

just stumbled over this nice toolset. Data Rotation should be out of scope, because everyone has different needs.

The only i would think of is creating a "how it could be implemented" - or something "this is how i handle this" in the Readme.

This will bring the people to think about such points and not just fire and forget some scripts and complain after a crash that the default policies did not help them.

For example i had to implement a "lock" to do not backup if the file /tmp/do_not_backup_db is present because of other jobs in the filesystem and the database are running. Additional i had to start a new Backup after one is finished - the Data in this DB are marked as of high business value.

But thats just my 2 cent.

thanhnl pushed a commit to thanhnl/xtrabackup-scripts that referenced this issue Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants