First attempt at do-restoreapp.sh

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>