1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-21 11:53:17 +00:00

bisync: merge copies and deletes, support --track-renames and --backup-dir -- fixes #5690 fixes #5685

Before this change, bisync handled copies and deletes in separate operations.
After this change, they are combined in one sync operation, which is faster
and also allows bisync to support --track-renames and --backup-dir.

Bisync uses a --files-from filter containing only the paths bisync has
determined need to be synced. Just like in sync (but in both directions),
if a path is present on the dst but not the src, it's interpreted as a delete
rather than a copy.
This commit is contained in:
nielash
2023-10-01 04:47:46 -04:00
parent 5c7ba0bfd3
commit 0e5f12126f
20 changed files with 50 additions and 61 deletions

View File

@@ -0,0 +1,5 @@
"file1.txt"
"file2.txt"
"file3.txt"
"file4.txt"
"file5.txt"

View File

@@ -49,7 +49,7 @@ INFO : - Path1 Queue delete - {path1/}file2.txt
INFO : - Path1 Queue delete - {path1/}file3.txt
INFO : - Path1 Queue delete - {path1/}file4.txt
INFO : - Path1 Queue delete - {path1/}file5.txt
INFO : - Do queued deletes on - Path1
INFO : - Path2 Do queued copies to - Path1
INFO : Updating listings
INFO : Validating listings for Path1 "{path1/}" vs Path2 "{path2/}"
INFO : Bisync successful