blob: b01c6bb8245946a0e835293340627c5c5abe37d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# [transmission-hacks](https://git.segundo.io/docker/transmission-hacks/tree/)
> Transmission hacks to automate removals, tagging and more
## Settings
| Variable Name | Default / Description |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| `CRON_LOG_LEVEL` | `0` / Tell cron what to log about jobs |
| `CRON_EXPRESSION` | `* * * * *` / A cron expression to indicate how often to run **all** scripts |
| `SCRIPT_TIMEOUT` | `300` / Per script timeout in seconds |
| `TRANSMISSION_HOST` | `localhost` / The host where transmission runs |
| `TRANSMISSION_PORT` | `9091` / Port where transmission is listening |
| `DELETE_TAG_0_NAME` | No default. A transmission tag to match torrents and delete by age. |
| `DELETE_TAG_0_AGE` | No default. Time (`1d`, `1w`...etc) string, torrents older than that will be deleted. |
| `DELETE_UNLINKED_1_NAME` | No default. A transmission tag to match torrents and delete if greater than age and has no links pointing to it. |
| `DELETE_UNLINKED_1_AGE` | No default. No default. Time (`1d`, `1w`...etc) string, torrents older than what will be deleted if there are no links pointing to it. |
### Example
```sh
docker run --rm \
-v /transmission/downloads/dir:/downloads:ro \
-e TRANSMISSION_HOST=transmission \
-e DELETE_TAG_0_NAME=some-tag \
-e DELETE_TAG_0_AGE=12d \
-e DELETE_TAG_1_NAME=none \
-e DELETE_TAG_1_AGE=12d \
-e DELETE_UNLINKED_0_NAME=another-tag \
-e DELETE_UNLINKED_0_AGE=1w \
chn2guevara/transmission-hacks:latest
```
|