How to copy a current course to a new category?

Re: How to copy a current course to a new category?

by Sumit K -
Number of replies: 0

Hi  Pushpraj,

 Is there any setting that exclude user data from backup. I mean by setting to any moodle core function or any thing else . i need to copy only course contents . 

 

$bc = new backup_controller(backup::TYPE_1COURSE, $course_module_to_backup, backup::FORMAT_MOODLE,
backup::INTERACTIVE_NO, backup::MODE_GENERAL, $user_doing_the_backup);
$bc->execute_plan();

 

when i am using interacitivity to NO (backup::INTERACTIVE_NO) its backing up all course contents witj user data . I just want to copy course content. CAn you help me to do this??

 

 

-S Kumar