Michael Milette

Hi Pete,

Good article. While your process certainly works, it could use a few tweaks to ensure that you can rollback if needed.

1. You should start by putting your site into CLI maintenance mode (not maintenance mode from inside Moodle) before you start your site backup. This disables any updates to the database and moodledata files thereby preserving the integrity of both of these. Otherwise the cron job or admin user activity in Moodle could cause these to fall out of sync with each other.

instructions for CLI maintenance mode can be found at:
https://docs.moodle.org/311/en/Maintenance_mode#CLI_maintenance_mode

2. You should also backup your moodledata files.

Hope you find this information useful.

Thanks again for sharing this information with the Moodle community. The world could use more people sharing.

Best regards,

Michael Milette

Mon, 12/07/2021 - 21:51 Permalink

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <p> <br> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA