| Revision 3082,
858 bytes
checked in by chris, 4 months ago
(diff) |
|
Force all options to be present to BackupClientRestore?(), to fix
misinterpretation of char * arguments as bools. Use macros to
simplify test code. Test that locations not present when bbackupd
started will be detected and backed up if subsequently created.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: BackupClientRestore.h |
|---|
| 5 | // Purpose: Functions to restore files from a backup store |
|---|
| 6 | // Created: 23/11/03 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef BACKUPSCLIENTRESTORE_H |
|---|
| 11 | #define BACKUPSCLIENTRESTORE__H |
|---|
| 12 | |
|---|
| 13 | class BackupProtocolClient; |
|---|
| 14 | |
|---|
| 15 | enum |
|---|
| 16 | { |
|---|
| 17 | Restore_Complete = 0, |
|---|
| 18 | Restore_ResumePossible, |
|---|
| 19 | Restore_TargetExists, |
|---|
| 20 | Restore_TargetPathNotFound, |
|---|
| 21 | Restore_UnknownError, |
|---|
| 22 | Restore_CompleteWithErrors, |
|---|
| 23 | }; |
|---|
| 24 | |
|---|
| 25 | int BackupClientRestore(BackupProtocolClient &rConnection, |
|---|
| 26 | int64_t DirectoryID, |
|---|
| 27 | const std::string& RemoteDirectoryName, |
|---|
| 28 | const std::string& LocalDirectoryName, |
|---|
| 29 | bool PrintDots, |
|---|
| 30 | bool RestoreDeleted, |
|---|
| 31 | bool UndeleteAfterRestoreDeleted, |
|---|
| 32 | bool Resume, |
|---|
| 33 | bool ContinueAfterErrors); |
|---|
| 34 | |
|---|
| 35 | #endif // BACKUPSCLIENTRESTORE__H |
|---|
| 36 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.