Page 1 of 3

Execute auto upload after complete

Posted: Tue Oct 26, 2010 4:10 pm
by ludothegreat
I've been searching for a way to do this for some time without any luck. I know about rsync and other syncing applications, but do not want to sync my folders. I simply want to upload the completed files from my seedbox to my media server. My only limitation is that I can not install any new software on my seedbox, but I can use SSH, FTP and possibly a couple other things that I'm not even aware of. My media server is a Windows Home Server box and my seedbox is Debian Linux. Is there a way to do this? I'd like to hear any and all suggestions. The more detail the better as I am not very comfortable in linux these days.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 2:47 am
by Cas
You have installed deluge on your debian box? There is the execute plugin that can run on completed torrents or you could mount a windows share on the debian box and simple use 'move completed' and point it to that mount.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 3:00 am
by ludothegreat
It's installed on a seed box. No way to mount my windows box :/

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 5:02 am
by johnnyg
Do you have samba installed on your seedbox?
Simplest would be to use smbclient to upload the files to your windows box.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 5:25 am
by ludothegreat
No samba. Also the seed box is in Sweden and I am in the US. FTP and SSH are the two ways I can think of using... no clue how to get it to work though.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 12:56 pm
by Cas
I think all you need is a script to run at a set interval (30min) on your windows box that would ssh/ftp to the seed box and checks a folder that the seed box moves completed downloads into and transfers them. Some backup software may even do the job as you would be essentially mirroring a remote folder.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 2:53 pm
by ludothegreat
Appreciate the suggestion. I am familiar with plenty of syncing and mirroring software out there, but that is not what I want to do. If sync or mirror, I need to keep the files in each folder at all times. My media box gets sorted daily and it would just end up creating a big mess. Even if I was able to dump new files/folders from my seed box to my media box once ever couple of hours with out syncing or mirroring that would be great. I'm Not good enough with rsync or the other tools that might me able to do this. Which is why I started asking about the execute plugin.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 3:27 pm
by Cas
To use the execute plugin you will need to be able to create a script that can be executed on your seed box.

Going back to using a backup program doing an incremental backup is probably what you need then.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 3:33 pm
by ludothegreat
Cas wrote:To use the execute plugin you will need to be able to create a script that can be executed on your seed box.
Thats why I'm here. To see if anyone has anything that can do that.

Re: Execute auto upload after complete

Posted: Thu Nov 04, 2010 3:49 pm
by Cas
You could create a simple python script using ftplib. Read the wiki and ftplib example for some help.