A moodle CLI script to restore all courses in a folder to multiple categories
Drop this into your /admin/cli folder of your moodle or workplace installation, execute with php via the command line.
Options:
-h, --help Print out this help
-p, --path full path to source folder containing moodle backups
-r, --remove Remove source backups after a sucessful restoresudo -u www-data /usr/bin/php admin/cli/restoreall.php --path=/var/www/html/mysite/moodledata/backups --removeGPL 3