Reverted changes in agent

Reverted changes in agent and improved use of archive
in restore to unpack backups
Added exception to errors updating agents