|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
![]() |
| Viewing: Web Development Archives > FAQs > Unix/Linux > backup script for a hosted MySQL database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|