title: How to target a different host inside a Fabric command
body: <p>How do you specify a different target to run a command on other than the one that's currently set for the running Fabric command?</p>
  
  <p>I have a command download_backup() that downloads a database backup file to the localhost from a remote host. Since it has to run locally, the host_string is localhost. However, I need to run a command on the remote host to find what the most recent backup is. When I try to do:</p>
  
  <pre><code>def download_backup():
      env.host_string = 'remotehost'
      env.user = 'remoteuser'
      backup_fn = run('ls -t /usr/local/lib/backups | head -1')
  </code></pre>
  
  <p>it still attempts to run the <code>ls</code> command on localhost. I do I change this to run on remotehost?</p>