Copying to a new storage - wrong message about snapshots

I’m migrating a backup to a new storage (same repository). To take advantage of the already generated chunks, I ran a copy of the last revision from the old storage to the new (empty) storage and got:

INFO SNAPSHOT_COPY Nothing to copy, all snapshot revisions exist at the destination.

:interrobang::interrobang:

It took me a few minutes to find out that I made a typo in the name of the snapshot…

In this case I think there should be an error message that the snapshot was not found instead of “all snapshot revisions exist”…

Probably some additional condition here:

Or maybe because the “for” preceding the “if” above first tests for the revisions and then for the snapshots.

But I’m not sure about the best change to solve the problem.

1 Like