SyncProcess proc = new SyncProcess(db,"restore",true,target,app,null);
PullSynchronizer restore = new PullSynchronizer(getLogger(),getApplication().getMetadataService(),user,db,storage,proc);
restore.setAdditive(false);
try {
restore.sync();
if (restore.getErrorCount()>0) {
ok = false;
getLogger().severe("Restore failed on "+db.getName());
failures.add(db.getName());
}