Skip to main content

backup all mysql databases every 4 hours

Comments

5 comments

  • es2alna
    It's not a professional way but it hits my mind when I read your post: ls -1 /var/cpanel/users -I '.*'
    This will list all your cPanel accounts without ./ and ../ Thanks,
    0
  • kjg
    Thank you for your reply es2alna But I was looking for a way to list the accounts databases, not just the accounts. // kjg
    0
  • cPanelMichael
    Hello :) You can run the following command if you simply want a list of all databases: # mysql mysql> show databases;
    You will find additional information about your databases in the YAML files for the accounts in the following directory: /var/cpanel/databases/
    These files could also be helpful for obtaining database user details: /var/cpanel/databases/dbindex.db /var/cpanel/databases/users.db
    Thank you.
    0
  • kjg
    [quote="cPanelMichael, post: 1614422"> /var/cpanel/databases/dbindex.db

    Exactly what I was looking for. Thank you very much. // kjg
    0
  • cPanelMichael
    You are very welcome. I am happy to see that information was helpful.
    0

Please sign in to leave a comment.