REMOVER watches a directory and removes its content
Variable | Default | Value | Description |
---|---|---|---|
TZ |
UTC | TIMEZONE |
Set your time zone to make sure logs rotate at local midnight instead of at UTC midnight. A list of all time zones can be found here. |
PATTERN |
* | STRING |
Set a pattern for the filenames. Only the files and folders that match this pattern will be removed. Default is * which means everything will be removed. The accepted pattern characters can be found here. |
INTERVAL |
10s | NUMBER[SUFFIX] |
Set the time interval between scans. The NUMBER may be a positive integer or a floating-point Number. The SUFFIX may be s for seconds, m for minutes, h for hours or d for days. When no suffix is specified, it defaults to seconds. |
Here is an example for a docker-compose.yml
version: "3.9"
services:
remover:
container_name: remover
image: jacobissa/remover:latest
volumes:
- /home/pi/docker/remover/watch:/app/watch
- /home/pi/docker/remover/logs:/app/logs
environment:
- TZ=Europe/Berlin
- PATTERN=*
- INTERVAL=5s
restart: unless-stopped