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?
-
☆ A M B ☆
- 24,524 Posts
The content is in the database, in the site_content table.
-
☆ 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/