Page 1 of 1

FWIW: "transplanting" your newsservers to a fresh ini

Posted: June 23rd, 2013, 12:33 pm
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