If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > backup works from command line but not from script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-09, 07:36
straygrey straygrey is offline
Registered User
 
Join Date: Oct 2008
Location: Midrand, South Africa
Posts: 19
Question backup works from command line but not from script

If I run the following backup command from the command line on Ubuntu 8.04 as root it works fine & does the backup but not if it is contained in a bash script run from root's cron.
I do not believe that file permissions is the problem, as files & folders belong to root.
Code:
mysqldump --add-drop-table -u root phplist > /ProductionBackups/phplist.backup.sql
Can someone please tell me why?
Reply With Quote
  #2 (permalink)  
Old 06-18-09, 20:13
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
If it runs on the command line then the problem isn't with mysql. you should post this in a forum for ubuntu and see if they know.
Reply With Quote
  #3 (permalink)  
Old 06-19-09, 05:38
straygrey straygrey is offline
Registered User
 
Join Date: Oct 2008
Location: Midrand, South Africa
Posts: 19
Thank you for your input
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On