Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Restore Moodle database to a different Digital Ocean database [SOLVED]

$
0
0
by Duncn James.  

Hi,   How I did it  for Digital Ocean Droplets and Database clusters, I guess the script I use can be used for restoring any PostgreSQL Moodle Db

  • CREATED MANY BACKUPS !!!!!!
  • Deleted Moodle Database in the Database Cluster with DO
  • Created empty Moodle Database
  • Ran the script
  • postgresql://doadmin:**************@db-postgresql-lon1-#######-do-user-######-0.b.db.ondigitalocean.com:25060/moodle?sslmode=require </home/backup/moodle-426+-db-20240701123733.sql   
  • Changed config.php to restored database
  • Checked everything was working.
  • Happy Days smile 

Viewing all articles
Browse latest Browse all 6815

Trending Articles