Different OS Server transferring files is not working on AWS S3 Bucket, It works only if windows to windows

情到浓时终转凉″ 提交于 2020-01-25 06:59:13

问题


I have problem setting up my AWS S3 bucket, the server already running on both two server Linux and Windows. The first the that I do to test if the transferring files is correct. I used the Windows to Windows transfer. the function of my codes is working, then second test Linux to Windows. Right now the transferring is not working. I don't know why its not working, if there is configuration need to do in Linux.

I will share to youthe sample code that I made on laravel.

exec('aws s3 cp s3://compexp/11-11-2019/'01150exp.zip'  \\\\'xxx.xxx.xx'/c/kitpos/update');

When I tried to my Linux AWS terminal it shows look like this:


回答1:


You can Copy files only to local storage, so you need to mount external Windows storage, as a folder to your Linux-filesystem. And only after that copy file.

You can read how to mount Windows folder to Linux here - https://www.poftut.com/how-to-mount-nfs-share-in-linux-and-windows/

But I think this is a bad practice. Why can't you pull files directly from Windows?



来源:https://stackoverflow.com/questions/58832937/different-os-server-transferring-files-is-not-working-on-aws-s3-bucket-it-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!