How to resume securely and reliably process of copying file $A
into backup location $B
done with pv "$A" > "$B"
or cat "$A" > "$B"
?
(let's assume file $A
is very big, e.g. LVM2 snapshot file)
Is it achievable with dd
?
Preffered: bash or python (preferably python3) solutions.
Example scenario: pv "$A" > "$B"
interrupted after copying 90%. How to resume it, in order to finish copying process but not repeating whole work again ?