Restore backupdir and dir.