8000 Add retention settings for database records and pre-migration backups · Issue #1344 · slskd/slskd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add retention settings for database records and pre-migration backups #1344

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

Open
jpdillingham opened this issue May 3, 2025 · 0 comments
Open

Comments

@jpdillingham
Copy link
Member

Here are the retention settings at the time of writing:

retention:
  search: 10080 # 7 days, in minutes
  transfers:
    upload:
      succeeded: 1440 # 1 day, in minutes
      errored: 30
      cancelled: 5
    download:
      succeeded: 1440 # 1 day, in minutes
      errored: 20160 # 2 weeks, in minutes
      cancelled: 5
  files:
    complete: 20160 # 2 weeks, in minutes
    incomplete: 43200 # 30 days, in minutes
  logs: 180 # days

The transfers retention settings dictate when records are removed from the UI, not the database; records are retained forever. As the application ages, high-volume users will likely need a way to clean this data up to control database size.

Additionally, I'm working on a feature that adds database migrations, and prior to performing migrations database backups are taken. These backups will double the size of database storage, and unless data was lost or mangled by a migration the backups are of little use and should be deleted.

Add a section to retention options, like:

retention:
  database:
    transfers: <duration to retain individual records>
    ... other tables ...
    backups: <duration to keep pre-migration backups>

And of course, the logic that will actually do the cleanup will be needed as well.

@github-project-automation github-project-automation bot moved this to Backlog in slskd May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant
0