Skip to content

Instantly share code, notes, and snippets.

@heriniaina
heriniaina / Server Backup Shell Script
Last active April 30, 2016 05:35 — forked from AlexBezuska/Server Backup Shell Script
Server Backup script not mine, credit goes to Joshua R Jones
#!/bin/bash
# A Simple Shell Script to Backup Red Hat / CentOS / Fedora / Debian / Ubuntu Apache Webserver and SQL Database
# Path to backup directories
USER="hery"
HOME="/home"
# Store only day of month
DOM=$(date +"%d")
# Temporary backup name