Full Backup All Files in Moodle 3.9.1

Full Backup All Files in Moodle 3.9.1

by Josh Josh -
Number of replies: 2

I'm currently using modded Moodle 3.9.1 and I want to backup all files including the database. This modded Moodle is packed in a Virtual Machine (FreeBSD + PostgreSQL) and I'm running it on VirtualBox. but I don't have any access to nor the files/database server. Is there any tools or plugin that can backup all the site data (including the moodledata, custom files, and database)?

Thank you very much.

Average of ratings: -
In reply to Josh Josh

Re: Full Backup All Files in Moodle 3.9.1

by Ken Task -
Picture of Particularly helpful Moodlers

There are no tools in moodle code to do a site backup although one could build a 'homegrown' local/snapshot to do as desired.  That would use FreeBSD tar/gzip for code directory + moodledata and whatever command there is for Postgress DB dump to sql.

Surely, even if hosted via VirtualBox, one has or could setup ssh access to server via FreeBSD.

Don't run and have never run FreeBSD, but can google.

Will this help?

https://www.instructables.com/Run-Secure-Shell-ssh-on-FreeBSD/

'SoS', Ken

In reply to Josh Josh

Re: Full Backup All Files in Moodle 3.9.1

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

FreeBSD and PostgreSQL make excellent system software for Moodle. Add Nginx and php-fpm in to the basket and you'll make the maximum out of your hardware.

To your specific question the short answer is https://docs.moodle.org/39/en/Site_backup. Ken gave you the explanations.

One thing you might wonder in the process, you can't (immediately) recognize the uploaded files in Moodle's data directory, the so called moodledata/. Their names are all obfuscated under the concept of https://docs.moodle.org/39/en/Repositories.