pi-safe icon indicating copy to clipboard operation
pi-safe copied to clipboard

pv integer argument expected when restoring backup

Open StefanFabian opened this issue 5 months ago • 11 comments

Hey, Thanks for this nice tool, first and foremost, it makes a tedious task a lot nicer.

I've encountered one issue when restoring, though. I've created an .img.xz backup from an SD card and tried restoring it. It finished immediately, which was sketchy to me. I've copied the last command and ran it manually:

xz -d -c '/home/stefan/Downloads/2025-07-14-radxa-zero3e-pisafe.img.xz' | pv -s 5.832.073.728 | sudo dd of=/dev/mmcblk0 bs=4M conv=fsync

With the output:

pv: -s: integer argument expected
0+0 records in
0+0 records out
0 bytes copied, 4,539e-05 s, 0,0 kB/s

It looks like it did not like the dots that were added to the filesize. Not sure if the actually executed command also contains these dots but since it terminated instantly, I assume so.

StefanFabian avatar Jul 15 '25 15:07 StefanFabian