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
This commit is contained in:
Mechiel Lukkien 2023-09-23 12:09:20 +02:00
parent 2b97c21f99
commit 85cef2a06c
No known key found for this signature in database

View file

@ -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
}