@Override
	public void run() {
		BackupFile file = DistributedBackupSystem.fManager.getFileByName(filename);
		int curChunk=0;
		if(file != null) {
			System.out.println("File exists");
			for(curChunk=0;curChunk<file.getNumChunks();curChunk++) {
				try {
					DistributedBackupSystem.tManager.executeTask(TaskManager.TaskTypes.RESTORECHUNK, file.getFileID(), curChunk).get();
				} catch (Exception e) {e.printStackTrace();}
			}
		}
	}