implement restore of backup; add test for encryption-decryption: currently failing!