diff --git a/backup/backuplib.php b/backup/backuplib.php
index 1dffdb4..a783f3f 100644
--- a/backup/backuplib.php
+++ b/backup/backuplib.php
@@ -609,6 +609,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 ed3afd4..8049fe0 100644
--- a/backup/restorelib.php
+++ b/backup/restorelib.php
@@ -5661,6 +5661,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 == 6) {
