1. Subscriptions
  2. Services
  3. Hardware
  4. Support

ClearFoundation

Forums
Welcome, Guest
Transmission How To
(1 viewing) 1 Guest
Go to bottomPage: 1...6789101112...20
TOPIC: Transmission How To
*
#11664
Re:Transmission How To 1 Year, 8 Months ago  
Isn't that the idea? You continue to upload even when you have completed the download. BitComet used to work the same way. Limiting the amount of upload is, I believe, a function of the ratio-limit and ratio-limit-enabled parameters.

..... having said that, I have a small cron script to move the download from the downloads directory to a useful one (and change the permissions) within an hour of the download completing. This also effectively kills the upload but leaves a few messy files lying about which I am struggling to clean up in my script because of spaces in the file names. Transmission v2 will be able to fire off a script on completion of a download which would then mean I did not have to run a cron job.
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/24 03:02 By NickH.
The administrator has disabled public write access.
 
#11666
Re:Transmission How To 1 Year, 8 Months ago  

Isn't that the idea? You continue to upload even when you have completed the download. BitComet used to work the same way.


yes your right, but the torrent is moved to the seeders page on the tracker. What i mean is that my torrent is still active on the download page while the download is already done. It stays active till it is time out.

This problem occur only when i use the incomplete directory. When i use only one directory the download is stopped nicely on the download page of the tracker


Limiting the amount of upload is, I believe, a function of the ratio-limit and ratio-limit-enabled parameters.


Ratio-limit is working fine now with transmission 1.92.


..... having said that, I have a small cron script to move the download from the downloads directory to a useful one (and change the permissions) within an hour of the download completing. This also effectively kills the upload but leaves a few messy files lying about which I am struggling to clean up in my script because of spaces in the file names.


Can i take look how you done this? I'm interested in auto moving my hardware.info videos to my tvseries directory.


Transmission v2 will be able to fire off a script on completion of a download which would then mean I did not have to run a cron job.


Nice! I have to check the road map sometime.
Marcel van Leeuwen
Platinum Boarder
Posts: 942
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Regards,
Marcel
 
#11670
Re:Transmission How To 1 Year, 8 Months ago  
Marcel van Leeuwen wrote:

Ratio-limit is working fine now with transmission 1.92.

I have not bothered with it because of my script.


..... having said that, I have a small cron script to move the download from the downloads directory to a useful one (and change the permissions) within an hour of the download completing. This also effectively kills the upload but leaves a few messy files lying about which I am struggling to clean up in my script because of spaces in the file names.


Can i take look how you done this? I'm interested in auto moving my hardware.info videos to my tvseries directory.

This is my script:
Code:


Script removed because of bug


I put the script in /etc/cron.hourly. It relies on only having completed downloads in the download dir and then moves everything it finds. I think I stop transmission to get round a file lock. Unfortunately it also leaves the tracker and the entry in /home/transmission/.config/transmission-daemon/resume behind. I tried to move files by file name but my script failed if there were spaces in the file name. I have almost cracked that and when I do, I can delete these errant files as well. I'll post back if I crack it.


Transmission v2 will be able to fire off a script on completion of a download which would then mean I did not have to run a cron job.


Nice! I have to check the road map sometime.

It is already at b1. I don't know how often Peter will be updating his rpm, otherwise it will be a manual install.
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/25 04:30 By NickH.Reason: Script was buggy
The administrator has disabled public write access.
 
#11686
Re:Transmission How To 1 Year, 8 Months ago  
Thanks Nick Howitt for posting!


It is already at b1. I don't know how often Peter will be updating his rpm, otherwise it will be a manual install.


Yeah thats is certainly a question for Peter Baldwin. I'll hope he has some time to update to version 2.0 when it is finished. I don't know how much work this is...
Marcel van Leeuwen
Platinum Boarder
Posts: 942
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Regards,
Marcel
 
#11696
Re:Transmission How To 1 Year, 8 Months ago  
@Marcel,
The script I posted is no good as it errors out if there is more than one file in the download directory. I am working on a better one.

If anyone can show me how to test for an empty (or non-empty) directory, I'd be very happy!
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11698
Re:Transmission How To 1 Year, 8 Months ago  
Tim Burgess
Moderator
Posts: 4209
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11701
Re:Transmission How To 1 Year, 8 Months ago  
Wierd, I couldnt use a flexshare with allusers. I did that initially and it was doing some crazy crap. I create the flexshare folder and it would create a duplicate folder in the transmission downloads folder... not only that but it would create another folder with the identical name as the first one (for the ownloads) and give it the same name_2 and put all of the torrents in it and duplicate it in the config folder of transmission. Then the permissions were all hosed up. It wouldnt let me do jack. Uninstalled it and reinstalled it and set the downloads folder in the transmission folder and directed my downloads to it. Set my torrents to go in the appropriate folder in the config folder. Then I set the permissions and sharing with the file manager in webmin and it runs like a champ. All my settings were correct in the config file. I couldnt figure it out but oh well its running top notch now. Still cant get it directed right in my transmission gui but I found a work around for that too.
jeff1965
Senior Boarder
Posts: 65
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11725
Re:Transmission How To 1 Year, 8 Months ago  
@Tim, thanks.

I have a new script now which will clean up Transmission (removing the resume and torrent files) when it moves the download to your desired location. The only prerequisite is that you must use a separate directory for partial downloads (set "incomplete-dir-enabled" to true in /var/lib/transmission/.config/transmission-daemon/settings.json)

Code:


#!/bin/bash

TRANSMISSIONHOMEPATH=/home/transmission # You need to set this to Transmission's home path
DOWNLOADPATH=/home/transmission/Downloads # You need to set this to Transmission's download path
DOWNLOADDESTINATION=/shares/shared/Downloads # You need to set this to where you want to move the files to

TORRENTPATH=$TRANSMISSIONHOMEPATH/.config/transmission-daemon/torrents/
RESUMEPATH=$TRANSMISSIONHOMEPATH/.config/transmission-daemon/resume/

if [ "$(ls -A $DOWNLOADPATH)" ] ; then

service transmission-daemon stop > /dev/null

cd $DOWNLOADPATH || exit 1
for TORRENTNAME in *; do
chown :howitts "$TORRENTNAME" -R # Changes the group owner of the download. You need to change this.
chmod 774 "$TORRENTNAME" -R # Changes permissions of the download
mv "$TORRENTNAME" "$DOWNLOADDESTINATION"

for TORRENT in "$TORRENTPATH$TORRENTNAME"*.torrent; do # remove the .torrent file
rm "$TORRENT"
done

for TORRENT in "$RESUMEPATH$TORRENTNAME"*.resume; do #remove the .resume file
rm "$TORRENT"
done
done

service transmission-daemon start
fi



Note I stop Transmission if there are any files to move then restart it at the end. This is all a bit of a kludge and there should be a much cleaner way of doing it using Transmission's own API but that is way beyond me.

[edit]Forgot to say, place script in /etc/cron.hourly. You may also need to give it execute permission.[/edit]
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/25 05:52 By NickH.
The administrator has disabled public write access.
 
#11929
Re:Transmission How To 1 Year, 8 Months ago  
@Nick
The VM bit did the trick. I have transmission up and running now. I currently just have it set it up a directory in /var/lib/transmission to keep it simple for now. I will want to set up a temp directory and flexshare but that will need to wait until I can read the posts to set this all up and test.

I had a strange "bug" with transmission not downloading. As it turns out I couldn't download anything. Shortly after I discovered this - I let it be. I came back to it a few hours later and still wasn't downloading. It wasn't until my IP changed that everything started working. Could have been just some fluke with my system/ISP combo. Anybody else see this behavior?
kbricked
Platinum Boarder
Posts: 432
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12970
Re:Transmission How To 1 Year, 7 Months ago  
Hi,

Can anyone please assist me in adding more trackers to an active torrent in transmission!

Thank you
ClearNovice
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1...6789101112...20
  get the latest posts directly to your desktop