WD MY Cloud 기준으로 설명을 드리자면 /etc/transmission-daemon/settings.json을 다음과 같이 편집해줍니다.

이렇게 되어있던 부분을...

"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",

요렇게 바꿔줍니다.

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/shares/torrent/info/done.sh",

/shares/torrent/info/done.sh 스트립트 파일은 다음과 같습니다. 적당한 에디터로 편집하여 저장해주세요.

#!/bin/sh

# the folder to move completed downloads to
MOVEDIR=/shares/torrent/done
 
# logfile
LOG_FILE=/shares/torrent/info/done_log
 
# port, username, password
SERVER="9091 --auth username:passwd"
 
# log
echo $TR_TORRENT_ID $TR_TORRENT_NAME>> $LOG_FILE
transmission-remote $SERVER --list >>$LOG_FILE
 
# move the files and remove the torrentfrom Transmission
transmission-remote $SERVER -t $TR_TORRENT_ID --move $MOVEDIR
transmission-remote $SERVER -t $TR_TORRENT_ID --remove

# log
transmission-remote $SERVER --list >>$LOG_FILE
echo finished >> $LOG_FILE

빨간부분의 username:password는 transmission에서 설정한 username과 password를 넣어주시면 됩니다. MOVEDIR과 LOG_FILE은 각자의 환경에 맞게 바꿔주세요.

권한 설정 해주시고

chmod a+rx /shares/torrent/info/done.sh

/shares/torrent/done 디렉토리를 만들어 주시고

mkdir /shares/torrent/done
chmod a+rx /shares/torrent/done

다시 실행해주시면 됩니다.

/etc/init.d/transmission-daemon restart