Skip to main content

Finding the MySQL file in a cPanel backup

Comments

5 comments

  • cPWilliamL
    Hi @woodland, You may find the MySQL dumps in the '/mysql/' directory of the extracted backup. In the command below, we are just looking in the archive for files/directories that match "*mysql*sql", without actually extracting: # tar -tf /home/cpmove-cptest.tar.gz *mysql*sql cpmove-cptest/mysql/cptest_testdb.sql cpmove-cptest/mysql-timestamps/mysql cpmove-cptest/mysql.sql
    In the below example, we extract the archive for files/directories that match "*mysql*sql", then change to the desired directory, and list its contents: # tar -zxvf /home/cpmove-cptest.tar.gz *mysql*sql cpmove-cptest/mysql/cptest_testdb.sql cpmove-cptest/mysql-timestamps/mysql cpmove-cptest/mysql.sql # cd cpmove-cptest/mysql # ls cptest_testdb.sql
    Thanks,
    0
  • woodland
    My cpmove-xxxx/mysql does not contain the database however in homedir and subfolders i have several different .sql files. Could anyone of these be the database dump?
    0
  • cPWilliamL
    Those may actually be user-made MySQL dumps. I can't be sure if those are what you need, but '.sql' files are certainly database dumps. If the stamps are recent, and the filename matches your database, then those are likely useful. If the database was present under the cPanel user at the time of the backup, then the MySQL dumps should be found in the '/ mysql/' directory.
    0
  • Abetum
    Doing a site restore with only a full cPanel backup. We can"t find the Mysql database and file. The host provider also checked and couldn't see the sql file. There is a folder "new_table_from_mysql" is the one? Also these files: mysql_collation.php mysql_compressed_rows.php mysql_engine.php mysql_sql_generator.php mysqli_native_moodle_recordset.php mysqli_native_moodle_temptables.php Please assist.
    0
  • HostNoc
    Will you please let us know the Backup you generated from Cpanel did not have any error? Also can you make sure Database exists on Cpanel from where you generated Backup.
    0

Please sign in to leave a comment.