Skip to content

Instantly share code, notes, and snippets.

View saqe's full-sized avatar
:octocat:
Deploying

Saqib Aleem saqe

:octocat:
Deploying
View GitHub Profile

Hi there 👋

Saqib here, a freelance Software Engineer From Pakistan.

Here are some ideas to get you started:

  • 🔭 I’m currently working on ...Process Automation, bots scripting, Data Analysis & API Development
  • 🌱 I’m currently learning ...Python 🐍
  • 👯 I’m looking to collaborate on ...open source project
  • 💬 Ask me about ... Serverless App developement 💻
@saqe
saqe / mongodb-s3-backup.sh
Created June 4, 2021 06:25 — forked from eladnava/mongodb-s3-backup.sh
Automatically backup a MongoDB database to S3 using mongodump, tar, and awscli (Ubuntu 14.04 LTS)
#!/bin/sh
# Make sure to:
# 1) Name this file `backup.sh` and place it in /home/ubuntu
# 2) Run sudo apt-get install awscli to install the AWSCLI
# 3) Run aws configure (enter s3-authorized IAM user and specify region)
# 4) Fill in DB host + name
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket)
# 6) Run chmod +x backup.sh
# 7) Test it out via ./backup.sh
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> App Name </title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css"/>
</head>