Skip to main content

Posts

Showing posts with the label artifacts

Upload artifacts to AWS S3

This document can be used when you want to upload files to AWS s3 Step-by-step guide Execute the following steps: Install ruby with the following commands in data machine where backup will be stored gpg2 --keyserver  hkp://keys.gnupg.net  --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 sudo \curl -L  https://get.rvm.io  | bash -s stable --ruby source /home/compose/.rvm/scripts/rvm rvm list known   ##### This command will show available ruby versions You can install the version of your choice by the following command: rvm install ruby 2.3.0   ###Where 2.3.0 is ruby version to be installed You can install latest ruby version by the following command: rvm install ruby --latest Check the version of ruby installed by: ruby -v Check if ruby gem is present in your machine:  gem -v If not present install by  sudo yum install 'rubygems' Then install aws-sdk:   gem install aws-sdk Add the code as below in a file  upload-...

Upload artifacts to AWS S3

This document can be used when you want to upload files to AWS s3 Step-by-step guide Execute the following steps: Install ruby with the following commands in data machine where backup will be stored gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 sudo \curl -L https://get.rvm.io | bash -s stable --ruby source /home/compose/.rvm/scripts/rvm rvm list known   ##### This command will show available ruby versions You can install the version of your choice by the following command: rvm install ruby 2.3.0  ###Where 2.3.0 is ruby version to be installed You can install latest ruby version by the following command: rvm install ruby --latest Check the version of ruby installed by: ruby -v Check if ruby gem is present in your machine:  gem -v If not present install by sudo yum install 'rubygems' Then install aws-sdk:  gem install aws-sdk Add the code as below in a file upload-to-s3.rb : # Note: Please replace below keys with your p...