mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 10:33:34 +00:00
bisync: enforce --check-access during --resync
--check-access is now enforced during --resync, preventing data loss in certain user error scenarios https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=%2D%2Dcheck%2Daccess%20doesn%27t%20always%20fail%20when%20it%20should
This commit is contained in:
@@ -39,10 +39,12 @@ Bisync error: bisync aborted
|
||||
(10) : move-listings path2-missing
|
||||
|
||||
(11) : test 3. put the remote subdir .chk_file back, run resync.
|
||||
(12) : copy-file {path1/}subdir/.chk_file {path2/}
|
||||
(12) : copy-file {path1/}subdir/.chk_file {path2/}subdir/
|
||||
(13) : bisync check-access resync check-filename=.chk_file
|
||||
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
|
||||
INFO : Copying unique Path2 files to Path1
|
||||
INFO : Checking access health
|
||||
INFO : Found 2 matching ".chk_file" files on both paths
|
||||
INFO : Resynching Path1 to Path2
|
||||
INFO : Resync updating listings
|
||||
INFO : Bisync successful
|
||||
|
||||
@@ -20,7 +20,7 @@ bisync check-access check-filename=.chk_file
|
||||
move-listings path2-missing
|
||||
|
||||
test 3. put the remote subdir .chk_file back, run resync.
|
||||
copy-file {path1/}subdir/.chk_file {path2/}
|
||||
copy-file {path1/}subdir/.chk_file {path2/}subdir/
|
||||
bisync check-access resync check-filename=.chk_file
|
||||
|
||||
test 4. run sync with check-access. should pass.
|
||||
|
||||
Reference in New Issue
Block a user