FR: media retention based on access time. #440
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#440
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purge local and remote media that hasn’t been accessed in a certain amount of time, in order to control the size of media repo. (Preferably automatically)
Synapse manual: https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html?highlight=Media_re#media_retention
Another approach is to use systemd-tmpfiles with conduwuit's startup check disabled:
This works mostly fine for me, just need some more time to prove the stability. Maybe it can be added to the conduwuit docs.
This does not differentiate between local and remote media. This will cause local media to be deleted too.
We plan on separating out the local and remote media into at least two separate directories eventually.
Yes, and that's my intention. Users on my server upload media pretty often and the majority of them are useless and never accessed again.
Absolutely, and some people will want to purge local media the same way as remote media, but some people will also not want to do that.
Splitting the two and having them configurable separately makes a lot of sense here - it'd let both sets of people do whatever they want! 😊
This could be pretty easy to implement based on our current media service
+1 for implementing this with separation of retention config for local vs remote media. This recent Reddit thread is a great example of why this is needed - many users are resistant to use Matrix without this type of granularity: https://www.reddit.com/r/selfhosted/comments/1r5c9ti/comment/o5htgdh/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
I would even go a small step further than the original ask - it would be great to have knobs for:
I would personally delete remote content quickly even if it was accessed recently