Upload Cpnale backup to Glacier Deep Archive

Adib Rahimi

Member
Aug 21, 2014
10
1
53
Kuwait City, Kuwait
cPanel Access Level
Root Administrator
Hello
I have configured WHM to upload cpnale backup to Amazon S3 bucket , however when backups are uploaded in S3 bucket their Storage class is "Standard" which is costly .
is this possible that when backups are uploaded on Amazon S3 buckets , they write directly to Glacier Deep Archive classs instead of "Standard" class?
 

hmaddy

Well-Known Member
May 6, 2020
266
29
28
Chennai
cPanel Access Level
Root Administrator
If you are using cpanel backup then you can setup Lifecycle on aws s3. For this, login to aws account and select the bucket and create life cycle option and select transition to Deep glacier.

Second option is use AWS CLI Option.

Take the backup to local disk and apply the following command to transfer backup files and change the storage also.

aws s3 cp /backup/2022-01-12/accounts/*.tar.gz s3://bucketname/foldername/ --storage-class DEEP_ARCHIVE