Housekeeping: keep page backups for one week at most by gensyn · Pull Request #195 · StreamController/StreamController · GitHub
Skip to content

Housekeeping: keep page backups for one week at most#195

Merged
Core447 merged 9 commits into
StreamController:mainfrom
gensyn:main
Aug 14, 2024
Merged

Housekeeping: keep page backups for one week at most#195
Core447 merged 9 commits into
StreamController:mainfrom
gensyn:main

Conversation

@gensyn

@gensyn gensyn commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

As the backup count for pages quickly rises (I have deleted several hundred backup folders; power users probably have more), I have added a mechanism to clean them up. Backup folders are now deleted after one week - but at least three backup folders are always kept.

@gensyn gensyn changed the title Housekeeping: keep page backups for two weeks at most Housekeeping: keep page backups for one week at most Aug 6, 2024
@Core447

Core447 commented Aug 7, 2024

Copy link
Copy Markdown
Member

@gensyn

gensyn commented Aug 7, 2024

Copy link
Copy Markdown
Contributor Author

To be honest, I was a little confused by which backups were created where. As long as it works now I'm fine. Code looks good.

@gensyn

gensyn commented Aug 7, 2024

Copy link
Copy Markdown
Contributor Author

But you are just keeping a fixed number of backups, right? No check for the age of a backup?

@Core447

Core447 commented Aug 7, 2024

Copy link
Copy Markdown
Member

But you are just keeping a fixed number of backups, right? No check for the age of a backup?

Yes, what is the advantage of checking the age? In theory only keeping one backup should be enough, but just to be sure I set it to 5 (+1).

@gensyn

gensyn commented Aug 14, 2024

Copy link
Copy Markdown
Contributor Author

Well, you suggested one week as a time period when we talked about it on Discord so I just went with it since it's definitely better than the status quo. But it's even better now so I'm all for merging.

@Core447

Core447 commented Aug 14, 2024

Copy link
Copy Markdown
Member

@Core447 Core447 merged commit dbb6460 into StreamController:main Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

2 participants