{"id":821,"date":"2017-11-16T17:20:50","date_gmt":"2017-11-16T17:20:50","guid":{"rendered":"http:\/\/kb.powercode.com\/?post_type=ht_kb&#038;p=821"},"modified":"2022-12-27T18:55:23","modified_gmt":"2022-12-27T18:55:23","slug":"amazon-web-services-aws-backups","status":"publish","type":"ht_kb","link":"https:\/\/kb.powercode.com\/?ht_kb=amazon-web-services-aws-backups","title":{"rendered":"Amazon Web Services (AWS) Backups"},"content":{"rendered":"<h2>**Update**<\/h2>\n<p>Navigate to bucket &#8220;yourBucket&#8221;<br \/>\nInside the permissions tab, click on Edit &amp; add the following policies<br \/>\n{<br \/>\n&#8220;Version&#8221;: &#8220;2012-10-17&#8221;,<br \/>\n&#8220;Id&#8221;: &#8220;PutObjPolicy&#8221;,<br \/>\n&#8220;Statement&#8221;: [<br \/>\n{<br \/>\n&#8220;Sid&#8221;: &#8220;DenyObjectsThatAreNotSSEKMS&#8221;,<br \/>\n&#8220;Effect&#8221;: &#8220;Allow&#8221;,<br \/>\n&#8220;Principal&#8221;: &#8220;*&#8221;,<br \/>\n&#8220;Action&#8221;: &#8220;s3:PutObject&#8221;,<br \/>\n&#8220;Resource&#8221;: &#8220;arn:aws:s3:::yourBucket\/*&#8221;,<br \/>\n&#8220;Condition&#8221;: {<br \/>\n&#8220;Null&#8221;: {<br \/>\n&#8220;s3:x-amz-server-side-encryption-aws-kms-key-id&#8221;: &#8220;true&#8221;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n]<br \/>\n}<\/p>\n<p>Click on Block public access (bucket settings) &amp; uncheck, save<br \/>\nNavigate to IAM console, filter &#8220;S3&#8221;, click on AmazonS3FullAccess<br \/>\nSave<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Uploading your backups to AWS offers many benefits both in price and storage\/cleanup options. You will need an existing account, an S3 bucket, and credentials for that bucket.\u00a0 For a detailed guide on setting this up, see Amazon&#8217;s\u00a0<a href=\"http:\/\/docs.aws.amazon.com\/AmazonS3\/latest\/gsg\/GetStartedWithS3.html\" target=\"_blank\" rel=\"noopener\">Getting Started with Amazon Simple Storage Service (S3)<\/a>.<\/p>\n<p>After you have set up your AWS environment according to Amazon&#8217;s documentation you should be able to find the information required for Powercode&#8217;s integration\u00a0on the <strong>My Security Credentials Page. <\/strong>The\u00a0<strong>My Security Credentials Page<\/strong> link should be found in the dropdown from your account name next to the blue arrow in the below image.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1147\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1.png\" alt=\"\" width=\"1887\" height=\"827\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1.png 1887w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1-300x131.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1-768x337.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1-1024x449.png 1024w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1-50x22.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1-60x26.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/awsDetailsArrows-1-100x44.png 100w\" sizes=\"(max-width: 1887px) 100vw, 1887px\" \/><\/p>\n<p>The <strong>Access Key ID<\/strong> you need to create the connection is stored under the<strong> Access keys (access key ID and secret access key)<\/strong> tab.\u00a0 If you do not currently have any access keys, one can be created by clicking<strong> Create New Access Key<\/strong> shown next to the red arrow in the above image.<\/p>\n<h3 id=\"enable-backups\">Enable Backups and Set Schedule<\/h3>\n<ul>\n<li><strong>In Powercode<\/strong> navigate to Config-&gt;Backup Settings<\/li>\n<li>Set\u00a0Enable Backups to \u201cEnabled\u201d<\/li>\n<li>Set your backup schedule<\/li>\n<li>Set Remote Backups to \u201cEnabled\u201d<\/li>\n<li>Set\u00a0Backup Method to \u201cAWS\u201d<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-823\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enable_aws_backups-165x300.png\" alt=\"\" width=\"617\" height=\"1122\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enable_aws_backups-165x300.png 165w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enable_aws_backups-27x50.png 27w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enable_aws_backups-33x60.png 33w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enable_aws_backups-55x100.png 55w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enable_aws_backups.png 719w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Enter Access Keys and Destination<\/h3>\n<ul>\n<li>Enter the AWS Access Key ID for the desired credentials.\u00a0 These can be viewed in the IAM console inside Amazon Web Services.<\/li>\n<li>Enter the AWS Secret Access Key.\u00a0 This is viewable only once when generated from AWS.\u00a0 It is then up to you to store it in a secure location.<\/li>\n<li>Enter the name of the S3 Bucket where you would like the backups to be uploaded to.<\/li>\n<li>Further define where the backups will be uploaded to by entering a directory path.\u00a0 If the path doesn&#8217;t exist it will create it during the initial backup process.<\/li>\n<li>Save the backup settings and credentials.<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-824\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enter_aws_credentials-300x182.png\" alt=\"\" width=\"630\" height=\"382\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enter_aws_credentials-300x182.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enter_aws_credentials-50x30.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enter_aws_credentials-60x36.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enter_aws_credentials-100x61.png 100w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/enter_aws_credentials.png 711w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>Powercode is now configured to save offsite backups to your AWS account.<\/p>\n<h3>A Note About Managing Your Backups<\/h3>\n<p>Currently Powercode does not perform any cleanup operations to delete the files that have been uploaded to AWS S3 buckets.\u00a0 S3 has its own management console for this purpose.\u00a0 Using the S3 console allows you to set your own cleanup schedule, which also allows you to move your files automatically to different storage solutions, each with different price points.\u00a0 We encourage you to use this to its full potential.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>**Update** Navigate to bucket &#8220;yourBucket&#8221; Inside the permissions tab, click on Edit &amp; add the following policies { &#8220;Version&#8221;: &#8220;2012-10-17&#8221;, &#8220;Id&#8221;: &#8220;PutObjPolicy&#8221;, &#8220;Statement&#8221;: [ { &#8220;Sid&#8221;: &#8220;DenyObjectsThatAreNotSSEKMS&#8221;, &#8220;Effect&#8221;: &#8220;Allow&#8221;, &#8220;Principal&#8221;: &#8220;*&#8221;, &#8220;Action&#8221;: &#8220;s3:PutObject&#8221;, &#8220;Resource&#8221;: &#8220;arn:aws:s3:::yourBucket\/*&#8221;, &#8220;Condition&#8221;: { &#8220;Null&#8221;: { &#8220;s3:x-amz-server-side-encryption-aws-kms-key-id&#8221;: &#8220;true&#8221; } } } ] } Click on Block public&#8230;<\/p>\n","protected":false},"author":9,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[53,27],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/821"}],"collection":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=821"}],"version-history":[{"count":18,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/821\/revisions"}],"predecessor-version":[{"id":1741,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/821\/revisions\/1741"}],"wp:attachment":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=821"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=821"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}