From 85cef2a06c9e31698a29d67c0aa5c634145de64b Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sat, 23 Sep 2023 12:09:20 +0200 Subject: [PATCH] when warning about not being able to hardlink during a backup, make it clear we continue with regular copying and that there won't be another warning for issue #61 by x8x --- backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.go b/backup.go index 7f1a3ed..dbbb335 100644 --- a/backup.go +++ b/backup.go @@ -231,7 +231,7 @@ func backupctl(ctx context.Context, ctl *ctl) { // No point in trying with regular copy, we would warn twice. return false, err } else if !warnedHardlink { - xwarnx("creating hardlink to message", err, mlog.Field("srcpath", srcpath), mlog.Field("dstpath", dstpath)) + xwarnx("creating hardlink to message failed, will be doing regular file copies and not warn again", err, mlog.Field("srcpath", srcpath), mlog.Field("dstpath", dstpath)) warnedHardlink = true }