Page 1 of 1

Integration with seedbox

PostPosted: Mon Mar 18, 2013 9:26 am
by fraumo
Hi

I am trying a seedbox to increase my ratios and I want to know if there is possible to download my files from the seedbox to my nas.
I connected to my seedbox via FTP, there is some way to download my files to my nas??

Thanks in advance

Re: Integration with seedbox

PostPosted: Mon Mar 18, 2013 7:31 pm
by Jocko
Hi Fraumo,

Yes, you can download directly on your NAS via a FTP access, with a Putty window :
- To download use the command ftpget,
- To upload use the command ftpput.

(or directly with wget)

I read somewhere that usually a sandbox can use also the rsync protocol but no idea how to use it...

Re: Integration with seedbox

PostPosted: Tue Mar 19, 2013 3:45 pm
by fraumo
OK

But my idea is disconect the PC and leave the nas download one or several files

Re: Integration with seedbox

PostPosted: Tue Mar 19, 2013 4:45 pm
by Jocko
Yes, I understand that.
You can use a script and for example use cron to synchronize your NAS with the seedbox. :-D
Note : wget seems more adapted for it

Re: Integration with seedbox

PostPosted: Tue Mar 19, 2013 5:41 pm
by fraumo
OK

I dont know exactly how, but I go try to do

thanks

Re: Integration with seedbox

PostPosted: Tue Mar 19, 2013 6:21 pm
by Jocko
Ok,

First read this page : http://www.editcorp.com/Personal/Lars_A ... get_7.html. (and man)

Create a txt file with an editor handling the linux format (ex notepad+) and named yourwantedname.sh
the first line must be : #!/bin/sh

and add lines as if you use a putty window

Be careful,
1/ as wget will run with the user "root" and the current umask is "022", you must to change it before because all created files will have write permissions only for the user root.

So add this line : umask 0

2/wget saves the files in the current folder, so you have also to select the wanted folder

So add this command : chdir 'fulpathtothe folder' (quote must be used if the path has spaces)

You can get a small example with the wget menu. After selecting a folder and the url, if you click on the button "Add this Wget job in CRON" a shell script is created in the share "cronjobs"