categories/courses

Re: categories/courses

by Ken Task -
Number of replies: 0
Picture of Particularly helpful Moodlers

The second ...

IF one can get moosh (a command line utility) to run on Windows, it has a way to 'restore' those no user backups to a category if one uses a looping bash shell (or whatever one does now on Windows for same) that would restore those courses in a category .... category has to pre-exist.

Example of one course restore - no looping below:

echo 'Takes one parameter ... the full name of the .mbz file to restore.';
echo 'Parameter given: '$1;
echo 'Paused ...';
read $keypress;
echo 'Ok.  Attempting course restore to cat id 4 - the AS Test Category....';
moosh -n --moodle-path='/var/www/html/moodle/' course-restore $1 4

http://moosh-online.com/

http://moosh-online.com/commands/

BTW, used looping with above to restore about 4000 courses over very long day - this to say, know moosh works.

'spirit of sharing', Ken


Average of ratings: Useful (2)