Skip to content

Instantly share code, notes, and snippets.

@derhofbauer
derhofbauer / moodle_upgrade.sh
Created November 2, 2016 15:51
Bash Moodle Upgrade Script
#!/bin/sh
echo "This script updates your moodle installation."
echo "You will need a few pieces of information to complete this process."
echo ""
echo "Warning: This will disable Web-Access to the moodle installation!"
echo "Make sure nobody is logged in at the moment or activate maintenance mode manually so no data is lost."
echo ""
echo ""
@palpalani
palpalani / mysql-backup.sh
Last active December 23, 2015 04:09
Shell Script To Backup MySql Database Server
#!/bin/bash
# Shell script to backup MySql database
# To backup MySql databases file to /backup directory and later pick up by your
# script. You can skip few databases from backup too.
# For more info please see (Installation info):
# http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html
# Last updated: Nov - 2013
# --------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2004, 2005 nixCraft project