Unix/Linux
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives FAQs Unix/Linux

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old June 27th, 2008, 05:30 PM
JRough
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
backup script for a hosted MySQL database

I don't see Perl in my /usr/bin so I can't use mysqlhotcopy so I'm
writing a script for mysqldump. I also need to copy a directory of
html pages. I could use any help. This is as far as I got:


#!/bin/bash
if user = rootUser
mysqldump = rootUser myDatabase backup/ backup_&
date & myDatabase.sq

cp public_html/myWebPageDir backup/backup& date & myWebPageDir

else



exit #


I have the error message
"./myBackupScript.sh: line 8: syntax error near unexpected token
`else'
/myBackupScript.sh: line 8: `else'
"

tia,

My problem is

Reply With Quote
Reply

Viewing: Web Development Archives FAQs Unix/Linux > backup script for a hosted MySQL database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway