Skip to content

Backup dir fix - #6312

Merged
ncw merged 2 commits into
rclone:masterfrom
Schlossgeist:backup-dir-fix
Jul 13, 2022
Merged

ncw merged 2 commits into
rclone:masterfrom
Schlossgeist:backup-dir-fix

Conversation

@Schlossgeist

Copy link
Copy Markdown

What is the purpose of this change?

I noticed while reading the changelog for v1.59.0 that changes have been listed that weren't actually implemented. I guess I must've missed the usage of the Overlapping function in the --backup-dir option. This PR replaces the old Overlapping function with the new filter-sensitive one and also adds documentation notes and hints in error messages.
Sorry for this oversight.

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

No.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

The old Overlapping function and corresponding tests have been removed, as it has been completely replaced by the OverlappingFilterCheck function.

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for doing this.

I assumed you had done it in your original commit and missed that it didn't quite get all the usages.

This looks great - I'll merge it now.

I might sneak it into 1.59.1 also since it makes the code line up with the documentation.

@ncw
ncw merged commit 8c02fe7 into rclone:master Jul 13, 2022
Jwink3101 added a commit to Jwink3101/syncrclone that referenced this pull request Jan 5, 2023
- Undoes some (extensive) optimization to avoid overlapping remotes. Prior to rclone 1.59.0 (documented in 1.60.0), you could not have moves that overlap even if the destination was filtered. This was changed in [PR #6312](rclone/rclone#6312) so we can undo this optimization. **NOTE**: This will break compatibility with rclone versions less than 1.59.0!
- Added a version check and error
- Added an optimization to the move tracking execution. While not as optimized as full directory moving (which I contend has too many edge cases), it batches moves within common directory paths when possible. This still requires rclone to make file moves (as opposed to directory moves) but it avoids duplicate checks and enables rclone's (superior) threading.

Copy from local devel repo: 2023-01-05 14:40:48 -0700|0b32b05
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