我使用Putty进入我的AWS实例并运行了一个cp命令将文件复制到我的S3实例中。
aws cli cp local s3://server_folder --recursive
在中途,我的互联网退出,即使AWS实例仍在正常运行,副本也会停止。有没有办法确保即使我失去了连接,cp命令也会继续运行?
答案 0 :(得分:1)
您也可以使用Minio Client aka mc,它是开源的并且与AWS S3兼容。 Minio客户端可用于Windows以及mac,Linux。
mc mirror 命令将帮助您将本地内容复制到远程AWS S3存储桶,因网络问题导致上传失败 mc session resume 将从哪里开始上传被终止了。
mc支持这些命令。
COMMANDS: ls List files and folders. mb Make a bucket or folder. cat Display contents of a file. pipe Write contents of stdin to one target. When no target is specified, it writes to stdout. share Generate URL for sharing. cp Copy one or more objects to a target. mirror Mirror folders recursively from a single source to single destination. diff Compute differences between two folders. rm Remove file or bucket [WARNING: Use with care]. access Set public access permissions on bucket or prefix. session Manage saved sessions of cp and mirror operations. config Manage configuration file. update Check for a new software update. version Print version.
您可以查看docs.minio.io了解详情。
希望它有所帮助。
免责声明:我为Minio工作。