summaryrefslogtreecommitdiff
path: root/lib/backupclient/BackupClientRestore.h
blob: 311a15bdbc2b3abd50b450b711e71c9b7ab97e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// --------------------------------------------------------------------------
//
// File
//		Name:    BackupClientRestore.h
//		Purpose: Functions to restore files from a backup store
//		Created: 23/11/03
//
// --------------------------------------------------------------------------

#ifndef BACKUPSCLIENTRESTORE_H
#define BACKUPSCLIENTRESTORE__H

class BackupProtocolClient;

enum
{
	Restore_Complete = 0,
	Restore_ResumePossible,
	Restore_TargetExists,
	Restore_TargetPathNotFound,
	Restore_UnknownError,
	Restore_CompleteWithErrors,
};

int BackupClientRestore(BackupProtocolClient &rConnection,
	int64_t DirectoryID,
	const char *RemoteDirectoryName,
	const char *LocalDirectoryName,
	bool PrintDots = false,
	bool RestoreDeleted = false,
	bool UndeleteAfterRestoreDeleted = false,
	bool Resume = false,
	bool ContinueAfterErrors = false);

#endif // BACKUPSCLIENTRESTORE__H