FWIW: "transplanting" your newsservers to a fresh ini

Support for the Debian/Ubuntu package, created by JCFP.
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
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

FWIW: "transplanting" your newsservers to a fresh ini

Post by sander »

FWIW:

I run SABnzbd on a lot of different systems. Each time I have to type the newsserver settings into the newly setup SABnzbd. I found a work around:

On the system with all the newsserver settings:

Code: Select all

grep -i -A1000 '^\[servers\]$' sabnzbd.ini | grep -B1000 '^\[categories\]$' | grep -vi -e '^\[servers\]$' -e '\[categories\]' > sabnzbd.server-settings.ini

cat sabnzbd.server-settings.ini | grep username | wc -l
The last command showed "14", so I have 14 different newsservers ...

On the fresh system, start the SABnzbd with the wizard, and fill out one dummy server (for example "removethis.org"):

Code: Select all

sabnzbdplus -f sabnzbd-dummy.ini
Stop SABnzbd, insert the well known servers:

Code: Select all

sed -i '/\[servers\]/r sabnzbd.server-settings.ini' sabnzbd-dummy.ini
Then start SABnzbd again: it should show your newsservers. You can now remove the dummy server

HTH
Post Reply