Skip to content

Instantly share code, notes, and snippets.

View pjmazenot's full-sized avatar

Pierre-Julien Mazenot pjmazenot

  • Montreal
View GitHub Profile
@pjmazenot
pjmazenot / backup-website.sh
Created August 8, 2019 15:01
Simple website and DB backup - Generates a tar.gz archive including the website files and a database dump
#!/bin/sh
# Simple website and DB backup
# Generates a tar.gz archive including the website files and a database dump
# /!\ DO NOT USE IF YOU HAVE A FOLDER NAMED "database" IN YOUR WEBSITE ROOT FOLDER
echo ""
echo "Starting backup process..."
echo ""