true, 'ssh' => array( 'host' => 'myhost.com', 'private_key' => '/my/key' ) ); $rsync = new Rsync($config); // change options programatically $rsync->setFollowSymlinks(false); $rsync->sync($originDir, $targetDir); } }