<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://public-wiki.iucc.ac.il/index.php?action=history&amp;feed=atom&amp;title=How_to_sync_files_to_Amazon_Glacier</id>
	<title>How to sync files to Amazon Glacier - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://public-wiki.iucc.ac.il/index.php?action=history&amp;feed=atom&amp;title=How_to_sync_files_to_Amazon_Glacier"/>
	<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_sync_files_to_Amazon_Glacier&amp;action=history"/>
	<updated>2026-04-19T00:31:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_sync_files_to_Amazon_Glacier&amp;diff=917&amp;oldid=prev</id>
		<title>Eyales: Created page with &quot;== Creating S3 bucket == * Login to the S3 console: : https://s3.console.aws.amazon.com/s3/ * Click on “Create bucket” -&gt; specify bucket name -&gt; make sure the bucket name...&quot;</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_sync_files_to_Amazon_Glacier&amp;diff=917&amp;oldid=prev"/>
		<updated>2019-07-10T06:21:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Creating S3 bucket == * Login to the S3 console: : https://s3.console.aws.amazon.com/s3/ * Click on “Create bucket” -&amp;gt; specify bucket name -&amp;gt; make sure the bucket name...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Creating S3 bucket ==&lt;br /&gt;
* Login to the S3 console:&lt;br /&gt;
: https://s3.console.aws.amazon.com/s3/&lt;br /&gt;
* Click on “Create bucket” -&amp;gt; specify bucket name -&amp;gt; make sure the bucket name is unique across all existing bucket names in Amazon S3 -&amp;gt; select a region close to your location -&amp;gt; click Next&lt;br /&gt;
:* Click on “Versioning” -&amp;gt; select “Enable versioning” -&amp;gt; click Save&lt;br /&gt;
:* Click on “Tags” -&amp;gt; specify key: AccountName, Value – specify here the AWS account name or ID -&amp;gt; click Save&lt;br /&gt;
:* Click on “Default encryption” -&amp;gt; select “AES-256” -&amp;gt; click Save&lt;br /&gt;
* Click Next&lt;br /&gt;
* Leave the default settings “Do not grant public read access to this bucket” -&amp;gt; click Next -&amp;gt; click “Create bucket”&lt;br /&gt;
* For more information about S3 pricing model, see:&lt;br /&gt;
: https://aws.amazon.com/s3/pricing/&lt;br /&gt;
&lt;br /&gt;
== Configuring IAM policy with read/write access to specific S3 bucket ==&lt;br /&gt;
* Login to the IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Policies -&amp;gt; Create policy:&lt;br /&gt;
:* Service: S3&lt;br /&gt;
:* Actions: List, Read, Write&lt;br /&gt;
:* Resources: Specific&lt;br /&gt;
::* Bucket: click on “Add ARN” -&amp;gt; specific the bucket name -&amp;gt; click Add&lt;br /&gt;
::* Object: Select Any&lt;br /&gt;
* Click on Review Policy&lt;br /&gt;
* Specify policy name &amp;#039;&amp;#039;&amp;#039;S3ReadWriteSpecificBucket&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Click on “Create policy”&lt;br /&gt;
&lt;br /&gt;
== Configuring S3 access to specific IAM group ==&lt;br /&gt;
* Login to the IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Groups -&amp;gt; click on “Create New Group” -&amp;gt; specify group name -&amp;gt; click “Next Step” -&amp;gt; from the policy list, search for the previously created policy &amp;#039;&amp;#039;&amp;#039;S3ReadWriteSpecificBucket&amp;#039;&amp;#039;&amp;#039; -&amp;gt; select the policy name -&amp;gt; click “Next Step”-&amp;gt; click “Create Group”&lt;br /&gt;
* In the future, in case you need to allow IAM users access to the specific S3 bucket, add them the newly created group&lt;br /&gt;
&lt;br /&gt;
== Configure user for accessing the storage bucket using CLI ==&lt;br /&gt;
* Login to the IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users -&amp;gt; click on “Add user” -&amp;gt; specify the user name -&amp;gt; access type: “Programmatic access” -&amp;gt; do not select “AWS Management Console access” -&amp;gt; click “Next: Permissions”&lt;br /&gt;
* From the “add user to group”, select &amp;#039;&amp;#039;&amp;#039;S3ReadWriteSpecificBucket&amp;#039;&amp;#039;&amp;#039; -&amp;gt; click “Next: Review” -&amp;gt; click on “Create user”&lt;br /&gt;
* Download the CSV file with the “Access key ID” and “Secret access key” and save the CSV file in a secure location&lt;br /&gt;
* Click Close&lt;br /&gt;
&lt;br /&gt;
== Configuring the AWS CLI environment ==&lt;br /&gt;
* Configure a profile for additional AWS IAM account:&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;aws configure --profile [profile_name]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: Note: Replace &amp;#039;&amp;#039;&amp;#039;[profile_name]&amp;#039;&amp;#039;&amp;#039; with your target AWS IAM user previously created&lt;br /&gt;
&lt;br /&gt;
== Perform Backup to Glacier ==&lt;br /&gt;
* Run from command prompt:&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;aws s3 sync /MySourceFolder s3://MyS3Bucket --storage-class GLACIER --profile profile_name&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: Note 1: Replace &amp;#039;&amp;#039;&amp;#039;MySourceFolder&amp;#039;&amp;#039;&amp;#039; with the source folder to copy/sync files from&lt;br /&gt;
: Note 2: Replace &amp;#039;&amp;#039;&amp;#039;MyS3Bucket&amp;#039;&amp;#039;&amp;#039; with the target S3/Glacier bucket name&lt;br /&gt;
: Note 3: Replace &amp;#039;&amp;#039;&amp;#039;profile_name&amp;#039;&amp;#039;&amp;#039; with the previously AWS configured profile&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
</feed>