Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Location
    Midrand, South Africa
    Posts
    22

    Question Unanswered: 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?

  2. #2
    Join Date
    Mar 2004
    Posts
    480
    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.

  3. #3
    Join Date
    Oct 2008
    Location
    Midrand, South Africa
    Posts
    22
    Thank you for your input

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •