diff options
author | Christian Segundo | 2023-12-30 15:29:41 +0100 |
---|---|---|
committer | Christian Segundo | 2023-12-30 15:40:28 +0100 |
commit | 61260f0998bd9f94ea1def09a9d0f8da5f6cde50 (patch) | |
tree | a91b798b05ea180e940dd57dfad9e61b20a31f3b | |
parent | 5b96a1fca8bab27c9cc446295b0946d119510a51 (diff) | |
download | transmission-hacks-wiki.tar.gz |
Update readmewiki
-rw-r--r-- | .markdownlintrc | 4 | ||||
-rw-r--r-- | README.md | 21 |
2 files changed, 22 insertions, 3 deletions
diff --git a/.markdownlintrc b/.markdownlintrc new file mode 100644 index 0000000..5d77ddb --- /dev/null +++ b/.markdownlintrc @@ -0,0 +1,4 @@ +{ + "default": true, + "MD013": { "line_length": 80, "code_blocks": false, "tables": false } +} @@ -1,8 +1,8 @@ -# transmission-hacks +# [transmission-hacks](https://git.segundo.io/docker/transmission-hacks/tree/) -Just a bunch of scripts to automate some tasks in transmission. +> Transmission hacks to automate removals, tagging and more -# Settings +## Settings | Variable Name | Default / Description | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | @@ -15,3 +15,18 @@ Just a bunch of scripts to automate some tasks in transmission. | `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 +``` |