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.
-
ProfDrLuigi
- Posts: 9
- Joined: 24 Apr 2017, 12:00
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.
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
-
-
- ReTransfer.sh
- (3.07 KiB) Downloaded 900 times
Last edited by
ProfDrLuigi on 21 May 2017, 18:33, edited 17 times in total.
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
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.
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 24 Apr 2017, 13:16
BTW, you can edit the fist post to update the script, if you want.
-
abc08154711
- Posts: 4
- Joined: 12 May 2017, 16:00
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: 9
- Joined: 24 Apr 2017, 12:00
Post
by ProfDrLuigi » 21 May 2017, 18:33
Yes you are right. I forgot one "fi" at the end. Its fixed now.
-
ProfDrLuigi
- Posts: 9
- Joined: 24 Apr 2017, 12:00
Post
by ProfDrLuigi » 12 May 2018, 18:28
Fixed:
- Missing recursive flag for scp and rsync
- String of Destinationpath was wrong
- Delete Command fixed
Script should work correct now.
Who is online
Users browsing this forum: No registered users and 36 guests