Skip to content

rclone bisync - #5164

Merged
ivandeex merged 5 commits into
rclone:masterfrom
ivandeex:pr-bisync
Nov 1, 2021
Merged

ivandeex merged 5 commits into
rclone:masterfrom
ivandeex:pr-bisync

Conversation

@ivandeex

@ivandeex ivandeex commented Mar 23, 2021 •

Copy link
Copy Markdown
Member

What is the purpose of this change?

Implement the rclone bisync command (port of rclonesync)

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

Fixes #118

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 :-Q

Action Items

  • Core functionality, first sync and dry run modes
  • Access health check
  • Filters file MD5 validation
  • Test engine for original test scenarios
  • Honor --max-delete flag
  • API endpoint sync/bisync
  • Basic test (test_basic) passes
  • Draft documentation
  • Really compare console logs
  • Make first-sync and dry-run tests pass
  • Implement ABORT/CRITICAL logic
  • Compatibility with --legacy messages and tests
  • Port README.md and TESTING.md
  • All tests pass on Local FS
  • All tests pass with Google Drive
  • All tests pass with Dropbox
  • Tests run and pass on Windows
  • Fix tests for Mailru
  • Fix tests for FTP (depends on backend/ftp: incomplete modtime support #5283)
  • Fix tests for SFTP
  • Fix tests for AWS S3
  • Fix tests for Chunker/LocalFs (depends on local: skip files removed concurrently with List #5297)
  • Put verbosity of bisync messages under control
  • Develop legacy free syntax for test scenarios
  • Keep hash in listings, if available (don't use for sync yet). See rclonesync#5
  • Parallelize all list/copy/delete operations for performance
  • Drop legacy support as soon as we are fully decoupled from the original project
  • Gracefully handle invalid UTF-8 in filenames. (rcsync#62)
  • Handle files that change during a bisync run - documented (rcsync#24)
  • Fix remaining FIXMEs
  • Add original license, author and attributions
  • More docs: FILTERING.md, USAGE.md, TROUBLESHOOTING.md
  • Inventory bug reports from the original project

@ivandeex ivandeex self-assigned this Mar 23, 2021
@ivandeex
ivandeex marked this pull request as draft March 23, 2021 22:56
@ivandeex
ivandeex force-pushed the pr-bisync branch 3 times, most recently from 1eb5407 to 30aa7f0 Compare March 30, 2021 01:05
@ivandeex
ivandeex force-pushed the pr-bisync branch 2 times, most recently from c6337e5 to 5163375 Compare March 31, 2021 22:48
@ivandeex ivandeex added this to the v1.57 milestone Apr 8, 2021
@ivandeex
ivandeex force-pushed the pr-bisync branch 7 times, most recently from 08f2a0e to f4e1b25 Compare April 12, 2021 00:31
@ivandeex
ivandeex force-pushed the pr-bisync branch 2 times, most recently from 93626dd to c07574e Compare April 17, 2021 15:54
@ivandeex
ivandeex force-pushed the pr-bisync branch 2 times, most recently from d7490c7 to 276c0e6 Compare April 26, 2021 19:30
@ivandeex
ivandeex force-pushed the pr-bisync branch 3 times, most recently from 6007ba2 to d52d882 Compare May 8, 2021 14:01
@ivandeex

ivandeex commented May 12, 2021 •

Copy link
Copy Markdown
Member Author

Optional items (will be postponed to later PRs)

UPDATE: The authoritative list is now maintained at #5674 and in the bisync project!

  • Use trie in-memory format for listings to reduce footprint (rcsync#59)
  • Support gzipped listings to reduce workdir size
  • Parallelize move/rename operations
  • Parallelize loading prior and getting current listings
  • Add --max-history flag - number of listings to keep
  • Honor --interactive and --auto-confirm
  • Handle deletion conflicts (jwink - #118, algorithm, syncrclone)
  • Honor --checksum or --ignore-checksum to control hashsum use
  • Handle hashsums, respect --track-renames (rcsync#5)
  • Detect moved/renamed directories (rcsync#71)
  • Honor special .rcignore files
  • Delete into --backup-dir
  • Revisit bisync progress display
  • Optimize resync as <copy+copy> (rcsync#66)
  • Handle case-insensitive filenames. Respect --ignore-case and --ignore-case-sync (rcsync#54, #4854)
  • Synchronize empty dirs if supported by backend (rcsync#63)
  • Handle Google documents (rcsync#1, #2479, #2411, #2893, #3986)
  • Fix tests for Google Photos (rcsync#53, G.Photos issues)
  • Use temporary files with FTP, SFTP (rcsync#56, #1316)

UPDATE

  • Make test suite work with imprecise modtime and backends without modtime
  • Make delta engine aware of backend modtime tolerance (depends on the test suite readiness, above)
  • Add size checks to the delta engine, add relevant test cases
  • Track critical filtering and change detection flags in sessions, add flag --use-saved-options
  • Try to extend operations.Equal into operations.Compare with more returned conditions like Newer, Older, ... (related to feature: implement advanced change detection #4810) for direct use in bisync delta engine
  • Recover after transient failures - rclone bisync #5164 (comment)

@ivandeex
ivandeex marked this pull request as ready for review May 12, 2021 13:28
@ivandeex

ivandeex commented Oct 8, 2021 •

Copy link
Copy Markdown
Member Author

@ncw @cjnaz
I think I managed to address all your review comments w.r.t. documentation
(including last minute comments from @cjnaz). See the very latest (bottom) commit.
Also added the commit titled export NewErrParamInvalid to resolve issue with error returned by rcd/bisync.
Have triaged remaining open items into bisync project, the umbrella ticket and a number of bisync issues.
Current beta is available from the beta server.
Now waiting for 1.57.
Will merge this feature on master right after that...

@ivandeex

ivandeex commented Nov 1, 2021 •

Copy link
Copy Markdown
Member Author

Like I planned, I am merging bisync right after 1.57.0

@ncw
You might want to remove the pr-bisync branch and clean up download server under https://beta.rclone.org/branch/pr-bisync/

@ivandeex

ivandeex commented Nov 1, 2021

Copy link
Copy Markdown
Member Author

@ncw
Could you ensure that merged documentation gets published on https://tip.rclone.org ?

@Asmageddon

Copy link
Copy Markdown

<3 So much love for all this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Two-way (bidirectional) synchronization

7 participants