[英]How to copy files from Amazon EFS to my local machine with shell script?
I have a question regarding file transfer from Amazon efs to my local machine with a simple shell script. 我有一个关于使用简单的shell脚本将文件从Amazon efs传输到本地计算机的问题。 The manual procedure I follow is:
我遵循的手动过程是:
Is there a way it can be done running a shell script in which I give two inputs: source file address and save destination directory? 有没有一种方法可以运行一个运行Shell脚本的方法,在该脚本中我提供两个输入:源文件地址和保存目标目录?
Can two steps be reduced to one ie directly copying from efs to local machine? 是否可以将两个步骤简化为一个步骤,即直接从efs复制到本地计算机?
You should be able to mount to the local machine and access the remote file system locally on your machine. 您应该能够安装到本地计算机上并在本地计算机上访问远程文件系统。
http://docs.aws.amazon.com/efs/latest/ug/mounting-fs.html http://docs.aws.amazon.com/efs/latest/ug/mounting-fs.html
With mounting, you can access the file locally with your machine resources to edit the remote files. 安装后,您可以使用计算机资源在本地访问文件以编辑远程文件。
While SCP can work, you need to keep them in sync all the time between your local and remote. 在SCP可以工作的同时,您需要使它们始终在本地和远程之间保持同步。
Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.