title: Copy redis database (.rdb file) from a remote server to local
body: <p>I was given a Redis server that is set up remotely.
  I can access data in that and I can do CRUD operation with that server.
  But I want the replica of the same database in my local.</p>
  
  <p>I have Redis desktop manager setup in my local. And also redis-server setup running.</p>
  
  <p><strong>Things I have tried:</strong></p>
  
  <ol>
  <li><p>using <strong>SAVE</strong> command.</p>
  
  <p>I have connected to the remote server and executed save command. It ran 
  successfully and created <code>dump.rdb</code> file on that server. But I can't access that file as I don't have permission for server FTP.</p></li>
  <li><p>using <strong>BGSAVE</strong></p>
  
  <p>same scenario here also</p></li>
  <li><p>using <strong>redis-cli</strong> command </p>
  
  <pre><code>redis-cli -h server ip -p 6379 save &gt; \\local ip\dump.rdb
  </code></pre>
  
  <p>Here I got an error <strong>The network name cannot be found.</strong></p></li>
  </ol>
  
  <p>Can anyone please suggest me on how can I copy the <code>.rdb</code> file from the server to local?</p>