[QCLUG] Linux Tool of the Week - Webserver backup script
Cody Wilson
belthesar@belthesar.com
Mon, 15 Dec 2008 00:17:15 -0500
If you're really looking into working with bash, I've found this site
to be an invaluable resource in my scripting endeavors: http://tldp.org/LDP/abs/html/
It's a more advanced guide than the one Chris shared, but if you have
any experience with scripting or writing programming code it's a great
resource.
Enjoy!
On Dec 9, 2008, at 10:03 AM, Chris Cooper wrote:
> 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
> <backupscript.sh>_______________________________________________
> QCLUG mailing list
> QCLUG@qclug.org
> http://qclug.org/mailman/listinfo/qclug