Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Crontab question

Discussion in 'General Discussion' started by stathis, Oct 29, 2003.

  1. stathis

    stathis Registered

    Oct 27, 2003
    Likes Received:
    Trophy Points:
    Hello guys!

    Is it possible to make a cron job so that every day it will backup the MySQL databases? Have in mind that i do not have shell access.
  2. Phiber_Optick

    Phiber_Optick Member

    Jun 17, 2003
    Likes Received:
    Trophy Points:
    If you don't have a shell I don't think that cron will run as it runs with ur permissions/shell. You may want to talk to the admin about that. If you can get a shell you can config the cron in cpanel. You can also d/l a backup of everything from cpanel. If you can get shell, you should be able to use the mysqldump command "man mysqldump".

    Something like this should suit your needs:

    mysqldump --opt --password=urpass DBNAME > mydb.sql

    There are also examples in the man page for mysql dump. You get the point though. :)

    You should also check to make sure that the admin of the server is backing them up. (This is an option in CPanel).


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice