Skip to main content

Make backup only for databases

Comments

3 comments

  • Eminds
    .tar.gz files are actually easy file to restore when there is a situation where you have to restore complete account. You can use the Restore account feature in WHM and restore the account easily using .tar.gz file provided its a full back up file. If you just want to restore the database then you have untar the tar.gz file using command tar -zxvf file name and then you can move the mysql DBs to the /var/lib/mysql making sure that the permissions are correct. another way is to dump the mysql databases on the source server using comand mysqldump database_name > database_name.sql move the file backup file to source server using FTP or rsync and then restore the database using command mysql database_name < database_name.sql
    0
  • Abdelmks
    Thank you Mr @Eminds
    0
  • cPanelMichael
    Hello, I'm happy to see the answer you received was helpful. I'm marking this thread as solved. Thanks!
    0

Please sign in to leave a comment.