]> git.wh0rd.org - home.git/blobdiff - .bin/backup-dvd
bin: add hterm helpers
[home.git] / .bin / backup-dvd
index 6dace1797fd13fb62a551c6a209a2858bf1f7f59..16cb052ed7a6b1d51fc0dc78e90bd5f6c0c01f13 100755 (executable)
@@ -127,6 +127,7 @@ backup_dvd() {
                -o "${out}"
                -n "${Volume}"
        )
+       sync
        if ! e dvdbackup -M "${opts[@]}" ; then
                e dvdbackup -F "${opts[@]}" || exit 1
        fi
@@ -358,6 +359,8 @@ mkiso_dvd() {
        ) > "${sh}"
        chmod a+x "${sh}"
        "${sh}" || exit
+       sync
+       md5sum "${out}/${Volume}.iso" > "${out}/${Volume}.md5"
 
        du -h "${out}/${Volume}.iso"
        sudo chattr +i "${out}/${Volume}.iso"