Hello, I just installed a Moodle istance and I have the need to plan its backups.
I have read the backup documentation page. However I wonder if there is a way to backup the db ordering by primary key, adding line breaks and dumping only the structure of caching tables (and not its content).
I am thinking to something similar to the Drupal drush comand:
drush sql-dump --ordered-dump --structure-tables-key=common
The reason for that is that the sql dump can be easily kept under revision control, e.g. git.
Or is there other approached with Moodle on how to keep the db under revision control ?
I also need to know which of the varius cache, localcache, temp and trashdir directories under moodledata contain pure cache information, that is that even if their content is erased the site continues to work, only maybe slowly untill the cache is automatically recreated.
Kind regards,
Antonello