Ported backupmanager from v1.7