diff --git a/backup/backuplib.php b/backup/backuplib.php
index 50cd9bc..ee7403f 100644
--- a/backup/backuplib.php
+++ b/backup/backuplib.php
@@ -589,6 +589,7 @@
             fwrite ($bf,full_tag('ID', 3, false, $role->id));
             fwrite ($bf,full_tag('NAME',3,false,$role->name));
             fwrite ($bf,full_tag('SHORTNAME',3,false,$role->shortname));
+            fwrite ($bf,full_tag('DESCRIPTION',3,false,$role->description));
         /// Calculate $role name in course
             $nameincourse = role_get_name($role, $coursecontext);
             if ($nameincourse != $role->name) {
diff --git a/backup/restorelib.php b/backup/restorelib.php
index 4051a2e..8550dfa 100644
--- a/backup/restorelib.php
+++ b/backup/restorelib.php
@@ -4095,6 +4095,9 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
                             case "NAMEINCOURSE": // custom name of the role in course
                                 $this->info->roles[$this->info->tempid]->nameincourse = $this->getContents();
                                 break;
+                            case "DESCRIPTION":
+                                $this->info->roles[$this->info->tempid]->description = $this->getContents();;
+                                break;
                         }
                     }
                     if ($this->level == 5) {
