Comments (9)
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.
Great news also! I'll leave this open to discuss any possible ins and outs in the meanwhile.
from laravel-backup.
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.
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.
Lots of interesting ideas there. Thanks!
from laravel-backup.
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.
very cool. I would call it Backup Retention Policy
from laravel-backup.
It will be included in V3.0
from laravel-backup.
Very nice, looking forward to it! 👍
from laravel-backup.
Related Issues (20)
- Class "Spatie\Backup\Helpers\Backup" not found HOT 1
- DB Import fails for tables with Generated Column
- Incremental Backups Support HOT 1
- backup: clean AWS(S3) not clean any files HOT 2
- Unable to retrieve backups using backup:list
- Unable to retrieve backups using backup:list HOT 1
- Failed to open stream: Too many open files.
- When running backup after the command completed it throws an error, maybe conflicting with ActivityLogger HOT 1
- Dumping Database stuck
- Unable to run php artisan serve due to problem in backup.php file
- Backup failed because: The dump process failed with a none successful exitcode.
- Spatie\Backup\Tasks\Backup\BackupJobFactory::Spatie\Backup\Tasks\Backup\{closure}()
- Remote backup fails "necessary data rewind wasn't possible" with Flysystem WebDAVAdapter
- Documentation for v8 is missing HOT 2
- Class "ZipArchive" not found HOT 2
- Message.php error
- backup:run command is not working from controller
- Does this package support backup of dynamic fields
- Backup laravel pulse tables
- Backup PostgreSQL Global
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-backup.