Jump to content

I need a favour from a Linux user.


Recommended Posts

Folks:

I need a favour. I need to write a cron job to backup a MySQL database. I know precisely how it all works, but frankly, I don't feel confident with the syntax of the *.sh file. I know it's pretty basic stuff, and I could figure it out pretty quickly, but this is for an important project, so it's just got to be right the first time.

If you can and are willing to lend a hand, let me know! The context is somewhat confidential, so details will be exchanged via PM, email, IM, or some other method. The reward? Fame and fortune. Well, a nice thank you, anyway, and the warm fuzzy feeling that you helped me learn something I've wanted to learn for a while now.

Link to comment
Share on other sites

Folks:

I need a favour. I need to write a cron job to backup a MySQL database. I know precisely how it all works, but frankly, I don't feel confident with the syntax of the *.sh file. I know it's pretty basic stuff, and I could figure it out pretty quickly, but this is for an important project, so it's just got to be right the first time.

If you can and are willing to lend a hand, let me know! The context is somewhat confidential, so details will be exchanged via PM, email, IM, or some other method. The reward? Fame and fortune. Well, a nice thank you, anyway, and the warm fuzzy feeling that you helped me learn something I've wanted to learn for a while now.

Your host doesn't have it in cpanel?

like... http://www.tutorialized.com/tutorial/Backu...Cron-Jobs/10745

Maybe this will help

http://www.alphaone-tech.com/tech-support/...;kbarticleid=68

I don't use Linux consistantly enough and our website uses cpanel and can backup from there but the above may assist.

Link to comment
Share on other sites

I've been through those tutorials, and though I understand them perfectly, I'm still looking for the hands-on assistance of someone who's actually done it before.

It would be different if it was a casual situation, but this is a production environment, and I don't want to take even the slightest chance with regards to me hacking out the solution. I know I can do it. It's just that I want backup first.

Link to comment
Share on other sites

Rsync is a really great backup commandline tool. My backup script is as follows:

#!/bin/bash

echo "Starting backup..."

rsync -a --delete /home/patrick/ /media/ieee1394disk/Documents/

echo "Backup finished!"

exit 0

That's about the extent of my bash scripting knowledge. If you want any help just send me a PM but I think you might be better off going to a more experienced user base for help. Maybe try here?

http://www.linuxquestions.org

edit:

If this is a MySQL backup are you going to do an SQL dump of the database or copy the relational database file (wherever it is...)?

Edited by firefly2442
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...