title: rsync in Expect script
body: <pre><code>     #!/usr/bin/expect -f
          #set timeout 25
          spawn rsync root@14.12.123.82:'/usr/backups /usr/backup-scripts /root/test/' /root/
          expect "root@14.12.123.82's password: $"
          #send "\$xxxxxx\n"
          #expect "\\$ $
  </code></pre>
  
  <p>What is wrong with the above script i get an error saying invalid rsync options</p>