File: clone-file

package info (click to toggle)
gddrescue 1.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,280 kB
  • sloc: cpp: 5,853; sh: 799; makefile: 159
file content (10 lines) | stat: -rwxr-xr-x 182 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -eu

dd if=/dev/urandom of=testfile.img bs=10M count=1
ddrescue testfile.img copyfile.img | tee -a run.log

cmp testfile.img copyfile.img

grep -q '^Finished' run.log