ADB Backup: Will it erase root?
No. Backing up and restoring won't affect root.

Basically, adb backup backups a portion of /data partition, while rooting mostly affects /system partition and soemtimes / (boot ramdisk, for system-less root). You can safely back it up and proceed on rooting it before restoring the backup.