Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Default MySQL backup cron job not working

    Hi,

    Not sure if this is the correct forum for this, so apologies if not.

    I'm trying to get my Cron job working in cPanel and everything is working ok except I need to email the database to my client:

    Code:
    mysqldump -u USERNAME -pPASSWORD DATABASENAME | gzip > /home/USERNAME/bkups/mysql-$(date +\%Y-\%m-\%d-\%H.\%M.\%S).gz
    Does anyone know how I can modify the code above to instruct cron to email te database?

    Thanks

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by mrnabo View Post
    I'm trying to get my Cronjob working in cPanel and everything is working ok except I need to email the database to my client:
    Why does your client need the database sent by email?

    That does seem a bit peculiar and if their intention is simply keeping
    backups, there is much better ways of doing all of that.

Similar Threads & Tags
Similar threads

  1. cron backup job using POST not working anymore ?
    By solsikkehaven in forum Data Protection
    Replies: 1
    Last Post: 02-22-2010, 11:49 PM
  2. Replies: 0
    Last Post: 01-22-2010, 04:53 PM
  3. Cron Job not working
    By mehtalalit in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-29-2009, 10:18 PM
  4. Cron job not working. Help!!!
    By Lor in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-19-2005, 04:28 PM
  5. Cron Job not working
    By sinclac in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-02-2004, 07:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube