<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fetch config with wget on pfSense 2.1]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">I'm trying to backup my config using the script from:<br />
https://doc.pfsense.org/index.php/Remote_Config_Backup<br />
(the one for pfSense 2.0)</p>
<p dir="auto">The login command works ok, the cookies.txt file gets created. The second one works also, but when I check the contents of the config-router-… file, it appears that what gets saved is the diag_backup.php file. Here's an excerpt from the downloaded file:</p>
<pre><code>
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

                &lt;title&gt;Login&lt;/title&gt;

.....

</code></pre>
<p dir="auto">Here's the second command I use:</p>
<pre><code>wget --keep-session-cookies --load-cookies cookies.txt --post-data 'Submit=download&amp;donotbackuprrd=yes' https://myserverhostname:81/diag_backup.php --no-check-certificate -O config-router-`date +%Y%m%d%H%M%S`.xml

</code></pre>
<p dir="auto">I am using port 81, as this is the port set up on the web interface. The link works in a browser.</p>
<p dir="auto">Has the syntax changed with 2.1, or do you have any ideas on what I am doing wrong?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netgate.com/topic/66716/fetch-config-with-wget-on-pfsense-2-1</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 07:27:17 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/66716.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Mar 2014 16:34:20 GMT</pubDate><ttl>60</ttl></channel></rss>