Note: this post applies to CloudBerry Explorer 2.6 and later.
As always we are adding features that our customers are requesting. This time we decided to add new PowerShell command that will help automate the way you apply storage class to Amazon S3 objects. Many users like to update their existing objects and set Reduced Redundancy storage class to benefit from reduced storage costs.
Check out here for more info how CloudBerry Explorer supports Reduced Redundancy Storage. We have introduced the new command that will help with setting storage class to an object
Set-CloudStorageClass
Here is an example how you can set RRS the storage class to an object
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$bucket = $s3 | Select-CloudFolder -Path $bucketname
$item = $bucket | Get-CloudItem $itemname
$item | Set-CloudStorageClass -StorageClass rrs
Here is an example how you can set the RRS storage to all text files in a specified folder:
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$bucket = $s3 | Select-CloudFolder -Path $bucketname
$folder = $bucket | Get-CloudItem $foldername
$folder | Set-CloudStorageClass -Filter *.txt -StorageClass rrs
If you want to set the RRS storage class for new objects while copying them to S3 use the following command that have been extended with the StorageClass parameter:
$src | Copy-CloudItem $destination -filter "results.xls" -StorageClass rrs
As always we would be happy to hear your feedback and you are welcome to post a comment.
CloudBerry S3 Explorer is a Windows freeware product that helps managing Amazon S3 storage and CloudFront . You can download it at http://cloudberrylab.com/
CloudBerry S3 Explorer PRO is a Windows program that helps managing Amazon S3 storage and CloudFront . You can download it at http://pro.cloudberrylab.com/ It is priced at $39.99
Like our products? Please help us spread the word about them. Learn here how to do it.
Want to get CloudBerry Explorer PRO for FREE? Make a blog post about us!
0 comments:
Post a Comment