Skip to content
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

backend: add the ability to auto-delete whiteboards #53

Open
FloChehab opened this issue May 11, 2020 · 2 comments
Open

backend: add the ability to auto-delete whiteboards #53

FloChehab opened this issue May 11, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@FloChehab
Copy link
Contributor

With the new possibilities offered by #52, I'd like to add an option to auto delete all the data associated with a whiteboard after some amount of time after the last user connected to it / something was drawn.

It will ease handling of this app in a "production" setting.

@cracker0dks cracker0dks added the enhancement New feature or request label May 12, 2020
@rdelaage
Copy link

It would be a very nice feature. I just wrote a docker image to restart the service each hour or day in order to delete old boards but a built-in system will be better

@christf
Copy link
Contributor

christf commented Dec 9, 2021

with master (not with version 1.6) you could build a command similar to

find . -type f ./savedBoards  -mtime +15 -exec rm -f {} \;

to delete savedboards that have not beend touched for a while - or with slight adjustments, that have been created a while ago. Scheduling this via cron would already achieve that feature without docker restart.

it does get a bit more involved (although not really complicated) when you also want to remove uploads, as you should only delete those that are not referenced by existing whiteboards. This should be entirely possible with a small shell script or python parsing the whiteboard json, extracting the list of referenced images/documents and matching that against the uploads directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants