Watch Folder: Stop it from deleting NZB's?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
charybshawn
Newbie
Newbie
Posts: 3
Joined: January 19th, 2013, 8:18 pm

Watch Folder: Stop it from deleting NZB's?

Post by charybshawn »

Is it possible to stop sabnzbd from deleting nzb's that are added to the watch folder? I've searched extensively but couldn't find any info on this.
I have multiple instances of sabnzbd using a dropbox folder as a watch folder and want them all to grab the nzb.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Watch Folder: Stop it from deleting NZB's?

Post by shypike »

No options for that now.
It's tricky, because a potentially large administration would be needed.
One that would, should it ever fail, fill up your queue with old jobs.
charybshawn
Newbie
Newbie
Posts: 3
Joined: January 19th, 2013, 8:18 pm

Re: Watch Folder: Stop it from deleting NZB's?

Post by charybshawn »

I have a partial workaround but its not complete. I have two folders in dropbox one labeled master and one slave. The master sabnzbd server pulls nzbs from the master folder (either /tv or /movies) and then deletes them. It then places a copy of the original nzb using the nzb backup folder into the slave folder. But I can't get it to put the nzb in the category of /tv or /movies in the slave folder. I bet it can be done using a pre-queue script but I'm not familiar enough with scripting yet to do that.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Watch Folder: Stop it from deleting NZB's?

Post by shypike »

You can use the pre-queue script though, assuming you know the NZB path.
You can set the NZB read-only just before SABnzbd wants to delete it.
For Windows it would be this:

Code: Select all

@echo off
rem Strip quotes from nzb name
set name=%1
set name=%name:"=%
rem Make nzb read-only
attrib +r "d:\dropbox\nzb\%name%.nzb"
rem Approve nzb
echo 1
charybshawn
Newbie
Newbie
Posts: 3
Joined: January 19th, 2013, 8:18 pm

Re: Watch Folder: Stop it from deleting NZB's?

Post by charybshawn »

Thank you, that did work.
Post Reply