I need to transfer files over sftp in laravel. By now, I've been able to upload and download a single file with SSH facade such as
SSH::into('staging')->put('somefile', 'copyfile');
SSH::into('staging')->get('somefile', 'copyfile');
But my problem starts when I try to upload/download several files. I make something like
SSH::into('staging')->put('somefolder/*', 'somedestfolder/');
But nothing happens and Laravel documentation I found in
http://laravel.com/docs/4.2/ssh#sftp-downloads
Does not help much.
I was able to run a ssh session and do a cp command, but I'm not sure I could do this in the production server.
Does anybody know how to do it this?.