I've added a Delete Channels DVR Recording Log Files feature discussed in another thread with @mjitkop and @cyoungers. Probably not a big issue for most, but the recording log files stored in the dvr/Logs/recording directory on your server have the potential to grow large if you do A LOT of recording.
This OliveTin Action Button is another that you can use cron-style (or task-scheduler-style), and have it execute every 7 days, every 30 days or whatever. The interval you specify is the same number of days aging that'll be used for the log file deletion -- e.g. if you set the action to run every 7 days, it'll delete all log files more than 7 days old.
You'll need to bind the /dvr directory on your Channels DVR server (which also needs to be a network share) to the container for this to work. The share can either be CIFS (SMB) or NFS, and can be attached using Portainer-Volumes. Set the volume up first, and then attach it to /mnt/dvr in the container. I use Proxmox containers, so my example is slightly different, as I have to pass the Samba share through already mounted to my host.
version: '3.9'
services:
olivetin:
image: bnhf/olivetin:test
container_name: olivetin
ports:
- 1337:1337
environment:
- CHANNELS_DVR=${CHANNELS_DVR} # Add your Channels DVR server in the form hostname:port or ip:port
- UPDATE_YAMLS=${UPDATE_YAMLS} # Set this to true to update config.yaml
- UPDATE_SCRIPTS=${UPDATE_SCRIPTS} # Set this to true to update all included scripts
- TZ=${TZ} # Add your local timezone in standard linux format. E.G. US/Eastern, US/Central, US/Mountain, US/Pacific, etc
volumes:
- /data/olivetin:/config # replace host path or volume as needed
- /mnt/dvr:/mnt/dvr # replace /mnt/dvr to the left of the colon with your Channels DVR Server /dvr network share
restart: unless-stopped
#volumes: # use this section if you've setup a docker volume named channels-dvr, with CIFS or NFS, to bind to /mnt/dvr inside the container
#channels-dvr:
#external: true
If you were attaching a pre-created docker volume (done through Portainer-Volumes), you'd want uncomment the last 3 lines (assuming a volume name of channels-dvr), and bind it like this:
volumes:
- /data/olivetin:/config # replace host path or volume as needed
- channels-dvr:/mnt/dvr # replace /mnt/dvr to the left of the colon with your Channels DVR Server /dvr network share
restart: unless-stopped
volumes: # use this section if you've setup a docker volume named channels-dvr, with CIFS or NFS, to bind to /mnt/dvr inside the container
channels-dvr:
external: true