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

Re: Error on CLI Course Backup

$
0
0
by Shamiso Jaravaza.  

Success! I've found what the problem was. Within the script I was running, there was the -f argument that I wasn't even sure was doing anything. For anybody with a unique case like this, the bat file should look like this (create a log subfolder and file in the directory if you want a log file!)

@echo on
c:\bitnami\moodle-3.11.2-0\php\php.exe c:\bitnami\moodle-3.11.2-0\apps\moodle\htdocs\admin\cli\backup.php --courseid=4 > c:\bitnami\moodle-3.11.2-0\logs\backup.log

Not sure why some commands work but others don't when -f is included as I'm no cmd guru. Now my issue is I am not seeing the .mbz file that should have been created. It is showing up in Moodle in the course restore section, but I can't seem to find it in any of the moodledata subfolders. I have checked the config.php and it should be in the default backup location (which is C:/Bitnami/MOODLE~1.2-0/apps/moodle/moodledata). Any suggestions?

Also thank you for helping!

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>