Script to remove torrents after a period of time. Originally based off of this example in the Transmission Forum.
- Requires the AWS CLI V2 to be installed and configured for email notification of deleted torrents
- Download the script
wget https://raw.githubusercontent.com/islandskater43/transmission-torrent-remove-script/main/transmission-delete-files.sh
- Configure the variables in the script for your system
- Make the script executable
chmod u+x transmission-delete-files.sh
- Run a test run
sh transmission-delete-files.sh
- If all looks good, change the
DRYRUN
flag tofalse
to enable the script to call transmission to remove-and-delete. - Configure in crontab
crontab -e
Add the following to trigger the script to run hourly - customize as you see fit.
0 * * * * /path/to/transmission-delete-files.sh
- AWS SES send-email documentation - https://docs.aws.amazon.com/cli/latest/reference/ses/send-email.html
- Downloading AWS CLI V2 on a Raspberry Pi - https://luther.io/articles/aws-cli-on-rpi/