Giter VIP home page Giter VIP logo

sre-challenge-backup-script's Introduction

Task: Scripting a Regular Backup

Objective

Your task is to write a script that automates a regular backup of an AWS S3 bucket to another S3 bucket. The script should log any errors.

Specifications

  • The script should be written in a language you're comfortable with. You may want to use a language that can leverage the AWS SDK, such as Python (Boto3 library), Node.js (AWS SDK for JavaScript), etc.
  • The script should copy all contents from a source S3 bucket to a destination S3 bucket. Assume that these buckets already exist.
  • The backup should occur on a schedule, for example, every day at a certain time.
  • If a backup fails, the script should log the error

Pre-requisites

During the challenge you will get access to an AWS account with the buckets (the origin and backup bucket). You can also take a look at /services where you will find multiple services that use the main S3 Bucket

Deliverables

Your completed task should include the following:

  • The script file.
  • A README.md file that includes the following:
    • Instructions on how to run the script.
    • Any necessary setup instructions, such as environment variables or dependencies that need to be installed.
    • An explanation of how the script works.

Evaluation

Your task will be evaluated on the following criteria:

  • Correctness: Does the script perform a regular backup as specified?
  • Error Handling: Does the script appropriately handle and log errors?
  • Code Quality: Is the code well-organized, easy to read, and appropriately commented?
  • Documentation: Is the README.md file clear and does it explain how to set up and run the script, and does it explain how the script works?
  • Edge Cases: Are there any edge cases, or optimisations we should keep in mind when the volume of data increases?
  • Please remember that this is not just about getting the script to work. We're interested in your problem-solving process and your approach to writing code and documentation.

Good luck!

sre-challenge-backup-script's People

Contributors

mateimicu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.