Skip to content

Commit

Permalink
add flag 'deleteExtra' for snapshot restore
Browse files Browse the repository at this point in the history
  • Loading branch information
0x53A committed Jan 31, 2023
1 parent 5a5a5ad commit 4e83669
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/BeginRestore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class BeginRestore extends Component {

this.state = {
incremental: true,
deleteExtra: false,
continueOnErrors: false,
restoreOwnership: true,
restorePermissions: true,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -109,6 +111,9 @@ export class BeginRestore extends Component {
<Row>
{RequiredBoolean(this, "Skip previously restored files and symlinks", "incremental")}
</Row>
<Row>
{RequiredBoolean(this, "When restoring into an existing directory structure, delete additional files and directories not in the snapshot", "deleteExtra")}
</Row>
<Row>
{RequiredBoolean(this, "Continue on Errors", "continueOnErrors", "When a restore error occurs, attempt to continue instead of failing fast.")}
</Row>
Expand Down

0 comments on commit 4e83669

Please sign in to comment.