ryansch / docker-unifi-rpi

Unifi Controller for Raspberry Pi 3+ and x86
https://hub.docker.com/r/ryansch/unifi-rpi/
347 stars 42 forks source link

mongo prune to eliminate old history: how to use it on Unifi Controller on docker? #86

Closed doremifajb closed 2 years ago

doremifajb commented 2 years ago

Hello ! I have your Unifi Controller for docker on Raspberry pi 4.

I wanted to erase client history older than 7 days, in order to comply with privacy law, and found this article:

https://help.ui.com/hc/en-us/articles/204911424#4

However it seems like it is a procedure for Unifi Controller installed in a "normal" way, not docker, and I am not sure how to use it. I would appreciate if you could please tell me what to do ?

doremifajb commented 2 years ago

I decided to just give it a try. (I was afraid of screwing things up so didn't dare to try). It seems that it is actually working :) Just as the article says. So I put it on cron for once a day.