[Aws cli] s3 delete files (wildcards issue)

awscli was not directly use the "*"

RM S3 S3 AWS: // S3: // log-ProVision / 08_nhk / Mesh / TEMP / * / * / Ver. 3 / *
. 1
this is not acceptable, and requires the use of --recursive --exclude, - include.
In - -exclude, - include in the use of "*."
--exclude is a partial delete the file, it can not be deleted.
--include is a partial delete the file, need to delete.

RM S3 S3 AWS: // log-ProVision / 08_nhk / Mesh / the TEMP / --recursive --exclude "* / * / Ver2 / *" --profile ProVision
1
this representation, delete s3: // log-provision / 08_nhk / mesh / all folders and files temp / under, but retain s3: // log-provision / 08_nhk / mesh / temp / * / * / ver2 / * do not delete this folder.

Guess you like

Origin www.cnblogs.com/cloudrivers/p/11718570.html