From 41cc4530f3b7b93974abc96b7f1c46663f62ce30 Mon Sep 17 00:00:00 2001 From: Bryan Kaplan <#@bryankaplan.com> Date: Wed, 25 Jan 2023 12:33:25 -0600 Subject: [PATCH] docs: Improve bisync check-access & check-filename This commit documents my learnings after having encountered a failure I reported in the rclone forum[0]. I may be a fool for having failed to understand the previous documentation, but I am likely not the only fool to get snared by it. This commit therefore adds details to clarify what the user must do in order to allow `--check-access` to succeed. While at it, I've also added some basic documentation for `--check-filename`. [0]: https://forum.rclone.org/t/bisync-check-file-check-failed/35682 --- docs/content/bisync.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/content/bisync.md b/docs/content/bisync.md index 3258fffaf..1d99acdbb 100644 --- a/docs/content/bisync.md +++ b/docs/content/bisync.md @@ -164,14 +164,27 @@ deleting **everything** in the other path. Access check files are an additional safety measure against data loss. bisync will ensure it can find matching `RCLONE_TEST` files in the same places in the Path1 and Path2 filesystems. +`RCLONE_TEST` files are not generated automatically. +For `--check-access`to succeed, you must first either: +**A)** Place one or more `RCLONE_TEST` files in the Path1 or Path2 filesystem +and then do either a run without `--check-access` or a [--resync](#resync) to +set matching files on both filesystems, or +**B)** Set `--check-filename` to a filename already in use in various locations +throughout your sync'd fileset. Time stamps and file contents are not important, just the names and locations. -Place one or more `RCLONE_TEST` files in the Path1 or Path2 filesystem and -then do either a run without `--check-access` or a `--resync` to set -matching files on both filesystems. If you have symbolic links in your sync tree it is recommended to place `RCLONE_TEST` files in the linked-to directory tree to protect against bisync assuming a bunch of deleted files if the linked-to tree should not be -accessible. Also see the `--check-filename` flag. +accessible. +See also the [--check-filename](--check-filename) flag. + +#### --check-filename + +Name of the file(s) used in access health validation. +The default `--check-filename` is `RCLONE_TEST`. +One or more files having this filename must exist, synchronized between your +source and destination filesets, in order for `--check-access` to succeed. +See [--check-access](#check-access) for additional details. #### --max-delete