Skip to content

Make delete parallel#2840

Merged
MichaelEischer merged 4 commits intorestic:masterfrom
aawsome:delete-parallel
Aug 1, 2020
Merged

Make delete parallel#2840
MichaelEischer merged 4 commits intorestic:masterfrom
aawsome:delete-parallel

Conversation

@aawsome
Copy link
Copy Markdown
Contributor

@aawsome aawsome commented Jul 19, 2020

What is the purpose of this change? What does it change?

parallelize deletion of files in prune, forget and rebuild-index. Also adds a progress bar for the deletion.

Was the change discussed in an issue or in the forum before?

This is a part of #2718 that can be merged independently

Checklist

  • I have read the Contribution Guidelines
  • I have enabled maintainer edits for this PR
  • I have not added tests for all changes in this PR - existing tests cover this change
  • I have not added documentation for the changes (in the manual)
  • There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
  • I have run gofmt on the code in all commits
  • All commit messages are formatted in the same style as the other commits in the repo
  • I'm done, this Pull Request is ready for review

@aawsome aawsome changed the title Make delete in prune and forget parallel Make delete parallel Jul 22, 2020
@aawsome
Copy link
Copy Markdown
Contributor Author

aawsome commented Jul 23, 2020

The CI test failed another time due to the rclone problem...

aawsome added a commit to aawsome/restic that referenced this pull request Jul 25, 2020
@aawsome
Copy link
Copy Markdown
Contributor Author

aawsome commented Jul 25, 2020

Ups - does AppVeyor have a problem connecting github?

aawsome added a commit to aawsome/restic that referenced this pull request Jul 27, 2020
aawsome added a commit to aawsome/restic that referenced this pull request Jul 27, 2020
aawsome added a commit to aawsome/restic that referenced this pull request Jul 29, 2020
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for another round of small changes, but I noticed a few more necessary changes while taking a closer look at the console output.

The current changes to the forget command have the side-effect of changing the semantics of the JSON output. As I don't see that the new semantic has a big benefit over the old one, I'd like to not break compatibility and keep the old behavior of only printing the JSON groups after the snapshots were deleted. So please change the error handling behavior for the JSON output back to the old one.

Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@MichaelEischer MichaelEischer merged commit 49d3efe into restic:master Aug 1, 2020
@aawsome aawsome deleted the delete-parallel branch August 2, 2020 04:33
mfrischknecht pushed a commit to mfrischknecht/restic that referenced this pull request Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants