Find the answer to your Linux question:
Results 1 to 4 of 4
I have made a crontab task to make a copy of all the databases on my system. It works fine when running it via SSH but gives a different output ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2

    Cool Crontab and mysqldump


    I have made a crontab task to make a copy of all the databases on my system.
    It works fine when running it via SSH but gives a different output when running it via a crontab task. When i schedule it; it outputs the help information into a file rather then the SQL/databases them self

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Posts
    37
    What does the crontab entry look like and what do you have in the script to dump the data?

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    5
    Hi

    I use automysqlbackup

    search for it on sourceforge.net

    its brilliant

  4. #4
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2
    My Crontab command was :

    mysqldump -u myusername -p mypassword --all-databases > ../root/btpbackup/07/october/db_export.sql

    Chris.

Posting Permissions

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