Difference between revisions of "How to transfer files to or from Amazon S3"

From JReviews Documentation
Jump to: navigation, search
Line 7: Line 7:
  
 
To transfer the files from or to Amazon S3 buckets, the fastest solution is to use the [https://aws.amazon.com/cli/ AWS CLI (Command Line Tools)].
 
To transfer the files from or to Amazon S3 buckets, the fastest solution is to use the [https://aws.amazon.com/cli/ AWS CLI (Command Line Tools)].
 +
  
 
=== Install AWS CLI ===
 
=== Install AWS CLI ===
Line 22: Line 23:
 
</pre>
 
</pre>
  
If not, install AWS CLI using one of the other available methods explained in the AWS User Guide:
+
 
[http://docs.aws.amazon.com/cli/latest/userguide/installing.html]
+
If not, install AWS CLI using one of the other available methods explained in the [http://docs.aws.amazon.com/cli/latest/userguide/installing.html AWS User Guide].
 +
 
 +
 
 +
=== Configuring AWS CLI ===
 +
 
 +
First run this command:
 +
 
 +
<pre>
 +
aws configure
 +
</pre>
 +
 
 +
and enter your API Key and API Secret when asked.

Revision as of 09:34, 15 July 2016

JReviews allows you to specify where the media files will be stored, locally or on Amazon S3, the settings can be found Media Settings -> Storage Settings:

Storage-settings.png


If you have an existing site with existing media files, changing these settings will not automatically transfer the files, the settings just tell JReviews where to look for the files, so you have to transfer existing media files yourself before changing the settings.

To transfer the files from or to Amazon S3 buckets, the fastest solution is to use the AWS CLI (Command Line Tools).


Install AWS CLI

If your PC/Server has Python package manager installed, you can easily install AWS CLI using this command:

sudo pip install awscli

or this one:

sudo easy_install awscli


If not, install AWS CLI using one of the other available methods explained in the AWS User Guide.


Configuring AWS CLI

First run this command:

aws configure

and enter your API Key and API Secret when asked.