Issue when purging torrent which has been moved with rtmv

36 views
Skip to first unread message

Beardmann

unread,
Oct 14, 2015, 5:43:10 PM10/14/15
to pyroscope-users
Hi there

I have a setup where I download my torrents to /download
When the torrent is downloaded, it is moved via the AutoMove plugin to /Torrents/Seeding
When the seeding is completed, it is time to remove the torrent, and for that I use rtmv to move it to /Torrents/Complete/
With this command:

rtcontrol --from-view complete seedtime=+14d 'realpath=/Torrents/Seeding/' -qo '~/bin/rtmv "$(path)s" /Torrents/Complete/$(now.iso).7s --cron' | bash


This creates a symbolic link in /Torrents/Seeding/... pointing to /Torrents/Complete/...


Now I would like to remove the torrent from rtorrent, and delete the linked files from /Torrent/Seeding/.. yet keeping the original files in /Torrents/Complete/...


I have tried the following:

rtcontrol realpath=/Torrents/Complete/ --cull --yes    # This deletes both the linked file and the original file... :-(
rtcontrol realpath=/Torrents/Complete/ --purge --yes # This also deletes both the linked file and the original file... :-(

If I try to run either of the two commands without --yes, interactive is implied, and I have to reply "yes", which then tells me this:

INFO     Keeping non-empty directory '/Torrents/Seeding/linux_something' with 16 entries!


The linked folder in /Torrents/Seeding is still there, yet empty...  and the original files are still there in /Torrents/Complete


I can then do a "rm -rf /Torrents/Seeding/linux_something" which removes the link, and the original files are kept in /Torrents/Complete...


Why does --cull and --purge delete both the linked files and the original files ?   And why only with the --yes option set ?


Is there another way to get where I want to go ?  Or is this actually a bug ?


I could of cause do a find /Torrents/Seeding/. -type l -exec rm -rf {} \;

But I would rather use rtcontrol for it as I'm not too keen on "rm -rf" in a script ;-)


Any help would be great :-)


/Beardmann



pyroscope

unread,
Oct 16, 2015, 10:21:45 PM10/16/15
to pyroscope-users
You're thinking way too complex, the whole point of rtmv is to continue seeding, you want to END seeding. The right way to do that is to first --stop, then mv (just mv) the data, then use --delete.
Reply all
Reply to author
Forward
0 new messages