[QCLUG] Linux Tool of the Week - Webserver backup script
Chris Cooper
QCAdmin@gmail.com
Tue, 9 Dec 2008 09:03:04 -0600
---------------------- multipart/mixed attachment
Attached is a quick and dirty little script I wrote for backing up a
couple of my servers. It tar.bz2's up the specified folders, dumps
and compresses all the MySQL databases, then pushed the files to a
windows file share. When all is said and done, it fires off an email
to let you know it worked. It could be also adapted to use FTP or
SFTP without much difficulty.
Don't forget to chmod +x backupscript.sh after editing the variables
for your system.
While it isn't very robust as far as error logging, I figured it was a
good pick because it is easy to follow for those that are still new to
bash scripting. For those of you that write sed/awk's in your sleep,
this is nothing special, but if you haven't had much experience with
scripts, this is a good jumping off point.
Here is a good resource for those looking to get started making your
own scripts:
http://www.linuxconfig.org/Bash_scripting_Tutorial
---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: backupscript.sh
Type: application/x-sh
Size: 2326 bytes
Desc: not available
Url : http://qclug.org/pipermail/qclug/attachments/1c825b86/backupscript.sh
---------------------- multipart/mixed attachment--