As we know, necessity is the mother of all inventions. I needed a CLI tool to backup my local machine’s data into AWS cloud with a single command — We create an ec2-backup tool writing a script in Python. We use modules like subprocess, os, boto3 and argparse. import subprocess
import time
import json
import argparse
import boto3
import os The ec2-backup tool performs a backup of the given directory into Amazon
Elastic Block Storage (EBS). This is achieved…