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!

backup all the databases when mysql is not running

Discussion in 'General Discussion' started by ukagg, Aug 7, 2011.

  1. ukagg

    ukagg Active Member

    Joined:
    Aug 14, 2002
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    My hard disk has gone bad and data center has rebooted the server in single user mode with only networking and ssh enabled (that means mysql is not running). Then I backed up all the accounts to secondary drive using following command:-

    /usr/local/cpanel/scripts/cpbackup --force

    But, now I find all the account backups are missing mysql databases backups.

    Please advice how can I backup the mysql databases of all the users.

    Regards
    Umesh
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You will have to copy the files and hope they are intact:

    Code:
    cp -R /var/lib/mysql /pathtootherdrive/mysql
    Other than either copying them to the new drive or scping them to another server, there isn't much choice here. If MySQL isn't running, a dump file cannot be created for each database.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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