保留目录结构复制文件,我在我的本地计算机上的以下目录:如何同时使用AWS命令行
dir1
|
|__ randomfile.jpg
|__ dir2
|
|__ file1.txt
|__ file2.txt
|__ pict.png
我想要做的是所有文件复制与*.txt
并保留子目录结构到Amazon S3桶。我怎样才能做到这一点?
在S3的一天结束。我们想找到这个文件和目录结构:
dir1
|
|__ dir2
|
|__ file1.txt
|__ file2.txt
使用标准的Unix命令我可以这样做:
find . -name '*.txt' -exec cp --parents \{\} /target \;
,但不知道如何与做AWS command line.
在现实中有大约10TB大小的文件传输。
可能http://stackoverflow.com/questions/8659382/downloading-an-entire-s3-bucket – codeforester