[PP-Script] Transfer downl. Files to another Server/Folder

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Post Reply
ProfDrLuigi
Posts: 7
Joined: 24 Apr 2017, 12:00

[PP-Script] Transfer downl. Files to another Server/Folder

Post by ProfDrLuigi » 24 Apr 2017, 12:03

Hey folx.

I wrote a little Bash-Script to transfer downloaded Stuff to another Server / Local Folder. Perhaps someone want to use it. Its configurable via NZBGet GUI. If you have ideas .... don't hesitate to tell me. :D

To-Do
- SSH Password authentication -> done
- FTP support for local Servers -> done
- Your Ideas

Visit me on Github for more Scripts.

https://github.com/ProfDrLuigi/nzbget-scripts

EDIT:
Fixed error in Script.
Attachments
script2.jpg
ReTransfer.sh
(3.07 KiB) Downloaded 10 times
Last edited by ProfDrLuigi on 21 May 2017, 18:33, edited 17 times in total.

hugbug
Developer & Admin
Posts: 6587
Joined: 09 Sep 2008, 11:58
Location: Germany (NRW)

Re: Transfer downloaded Files to another Server via rsync

Post by hugbug » 24 Apr 2017, 12:28

Thanks for sharing it.

Small suggesteion: reformatted option descriptions for better view in web-interface:

Code: Select all

# Should the Sourcefile(s) be deleted after Transfer (yes, no).
#Delete=no

# Remote hostname.
#Hostname=your.hostname.xy

# rsync/SSH Port on destination Machine(1-65535).
#Port=22

# Remote username.
#Username=Your Username

# Remote path.
# Trailing / is not needed.
#Path=Destinationpath
Changed "User" to "Username" (webui shows "username" in a smaller box). Changed y/n to yes/no.

ProfDrLuigi
Posts: 7
Joined: 24 Apr 2017, 12:00

Re: Transfer downloaded Files to another Server via rsync

Post by ProfDrLuigi » 24 Apr 2017, 12:48

Thanx. Looks much better.
Last edited by ProfDrLuigi on 24 Apr 2017, 13:30, edited 1 time in total.

hugbug
Developer & Admin
Posts: 6587
Joined: 09 Sep 2008, 11:58
Location: Germany (NRW)

Re: Transfer downloaded Files to another Server via rsync

Post by hugbug » 24 Apr 2017, 13:16

BTW, you can edit the fist post to update the script, if you want.

ProfDrLuigi
Posts: 7
Joined: 24 Apr 2017, 12:00

Re: Transfer downloaded Files to another Server via rsync

Post by ProfDrLuigi » 24 Apr 2017, 13:30

Yes you are right. Done.

ProfDrLuigi
Posts: 7
Joined: 24 Apr 2017, 12:00

Re: [PP-Script] Transfer downloaded Files to another Server

Post by ProfDrLuigi » 27 Apr 2017, 11:08

Done so far. If anyone want to test it ....

abc08154711
Posts: 1
Joined: 12 May 2017, 16:00

Re: [PP-Script] Transfer downl. Files to another Server/Fold

Post by abc08154711 » 12 May 2017, 16:08

I tried to use the script but failed. Actually I want to use it for a really simple task. After a specified category is downloaded I want the folder and files to be moved to another location on the same host. So i used the option 'Local' and skipped all other settings except destination which i filled with '/volume1/mydestination'. Unfortunately the script fails and I have no clue why. This is what the log offers:

ERROR Fri May 12 2017 17:54:55 Post-process-script ReTransfer.sh for myfile failed (terminated with unknown status)
INFO Fri May 12 2017 17:54:55 ReTransfer: /usr/local/nzbget/share/nzbget/scripts/ReTransfer.sh: line 124: syntax error: unexpected end of file

Do any of you have a clue?

ProfDrLuigi
Posts: 7
Joined: 24 Apr 2017, 12:00

Re: [PP-Script] Transfer downl. Files to another Server/Fold

Post by ProfDrLuigi » 21 May 2017, 18:33

Yes you are right. I forgot one "fi" at the end. Its fixed now.

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests