From 4e8366901bd5da826260bfedeb9d0cd499410e74 Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Tue, 31 Jan 2023 23:34:26 +0000 Subject: [PATCH] add flag 'deleteExtra' for snapshot restore --- src/BeginRestore.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/BeginRestore.jsx b/src/BeginRestore.jsx index d1d3140..8be344c 100644 --- a/src/BeginRestore.jsx +++ b/src/BeginRestore.jsx @@ -17,6 +17,7 @@ export class BeginRestore extends Component { this.state = { incremental: true, + deleteExtra: false, continueOnErrors: false, restoreOwnership: true, restorePermissions: true, @@ -50,6 +51,7 @@ export class BeginRestore extends Component { root: this.props.match.params.oid, options: { incremental: this.state.incremental, + deleteExtra: this.state.deleteExtra, ignoreErrors: this.state.continueOnErrors, restoreDirEntryAtDepth: this.state.restoreDirEntryAtDepth, minSizeForPlaceholder: this.state.minSizeForPlaceholder, @@ -109,6 +111,9 @@ export class BeginRestore extends Component { {RequiredBoolean(this, "Skip previously restored files and symlinks", "incremental")} + + {RequiredBoolean(this, "When restoring into an existing directory structure, delete additional files and directories not in the snapshot", "deleteExtra")} + {RequiredBoolean(this, "Continue on Errors", "continueOnErrors", "When a restore error occurs, attempt to continue instead of failing fast.")}