Giter Site home page Giter Site logo

Comments (9)

freekmurze avatar freekmurze commented on May 19, 2024

This is a good idea for v3 of the package. ETA: somewhere in March. If it's not part of v3.0, I'll add it in a point release.

from laravel-backup.

lowerends avatar lowerends commented on May 19, 2024

Great news also! I'll leave this open to discuss any possible ins and outs in the meanwhile.

from laravel-backup.

freekmurze avatar freekmurze commented on May 19, 2024

I'm looking for a good name for this functionality (keep daily backups for the last, say, 30 days, and weekly backups for the last 12 weeks and monthly backups for the last 12 months). Does that strategy have a specific name?

from laravel-backup.

lowerends avatar lowerends commented on May 19, 2024

Well, I think the word "strategy" is the name for this functionality. I'm not sure how you will implement this, but I was thinking something with daily, weekly, monthly and yearly folders that would each get their own removal frequency and number of backups to keep.
Depending on how flexible this will be in terms of number and duration of backups to keep per time frame, you could call this feature "Configure your own backup strategy", or "backup strategy" in short.

from laravel-backup.

freekmurze avatar freekmurze commented on May 19, 2024

Lots of interesting ideas there. Thanks!

from laravel-backup.

freekmurze avatar freekmurze commented on May 19, 2024

I coded up the strategy:
https://github.com/spatie/laravel-backup/blob/v3/src/Tasks/Cleanup/Strategies/DefaultStrategy.php

Will probably refactor it in the coming days to make it more readable. Coming up with good function names is hard in this context.

And of course I'll write some tests to prove that it works :-)

from laravel-backup.

mrwaim avatar mrwaim commented on May 19, 2024

very cool. I would call it Backup Retention Policy

from laravel-backup.

freekmurze avatar freekmurze commented on May 19, 2024

It will be included in V3.0

from laravel-backup.

lowerends avatar lowerends commented on May 19, 2024

Very nice, looking forward to it! 👍

from laravel-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.