I am a complete newby to Moodle and I have managed to delete the Dropbox repository from my boss's new account !
DropBox is not on the 'manage repositories' list anymore. How can I reinstall it.
If I am following you correctly, one could try this:
Find the same version of Moodle @ https://download.moodle.org/
As close as you can to the version of Moodle you are running cause everything core code does have a version.php file.
Download and unzip
In the unzipped folder (moodle), you should find a repository/dropbox folder/directory.
Zip only the dropbox folder.
Upload your manually created dropbox.zip file to your server code/repository/ directory.
Unzip. Make sure that action creates a 'dropbox' directory.
Set ownerships/permissions (recursively) on the newly unzipped dropbox directory to match that of other directories at same location.
That should throw you as admin into an environment check and then present you will a screen to install dropbox.
Fingers crossed it will re-appear.
Might need to be re-enabled and re-configured after that.
'SoS', Ken
Did say it might need to be re-configured!
https://docs.moodle.org/310/en/Dropbox_repository
Google search of issue found this:
As is true of most repositories, config has to be done at both ends ... in this case, moodle is one end and dropbox account config is the other end.
'SoS', Ken
Welcome! Do the following *now* ...
make a minimal backup of your site ... minimal is code directory archive and a database dump.
https://docs.moodle.org/310/en/Site_backup
Download the backup but keep at least one on server.
IF ... IF ... you ever do a 'boo-boo' like the repo, you have all the code folders in that backup and version will match for sure.
Also, it has always been advised that if you are not to use something ... hide or disable it. Don't delete ... especially if it's core code!
'SoS', Ken