We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49515
    • 184 Posts
    Hello,
    I'm sorry, however I am still having trouble learning the CLI path to the GUI path.
    I can navigate to the MODX webpage's content via the GUI MODX > Dashboard > Resources > Website > webpage (1) > Content.

    However, using CLI, I cannot find the content? E.g. Shell > /public/www/assets?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The content is in the database, in the site_content table.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 49515
        • 184 Posts
        Thank you.
        What is the path/location to the MODX database?
        My search results show this, which hasn't helped https://rtfm.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server

        In my Shell, I am currently looking at:
        /home/domain.com/public_html# ls
        assets        awstatsicons     connectors  ht.access  images     manager     setup
        awstats-icon  config.core.php  core        icon       index.php  phpmyadmin


        To clarify in case someone says the database can be anywhere, I'm referring to the default install location.
        I rarely move directories around, to ease in the epic search quest of paths to mysterious and obfuscated file locations. [ed. note: eiger3970 last edited this post 11 years ago.]
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          There is no default installation location for the database. That is a totally separate server application, just like your web server is a separate server application. MODX has nothing to do with installing or configuring the database, it just uses what the server provides.

          In many cases the database server isn't even on the same physical machine as the web server. And a single database server can manage hundreds of individual databases.

          You don't copy an entire database engine's files to back up the single database for your site, you just back up the data and structure of your site's database.

          From a command line, you can access the database with 'mysql' commands, to backup the entire database you can use the 'mysqldump' command. Of course, this presumes that your MODX site is using a MySQL database. It will also run on a MS-SQL database.

          http://mysqlserverteam.com/creating-and-restoring-database-backups-with-mysqldump-and-mysql-enterprise-backup-part-1-of-2/
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org