]> git.wh0rd.org - home.git/blobdiff - .bin/backup-dvd
custom-chroot: quote paths
[home.git] / .bin / backup-dvd
index ef79ddec93fee1fea4ed6e71b1a2814a1457649f..16cb052ed7a6b1d51fc0dc78e90bd5f6c0c01f13 100755 (executable)
@@ -127,9 +127,11 @@ backup_dvd() {
                -o "${out}"
                -n "${Volume}"
        )
+       sync
        if ! e dvdbackup -M "${opts[@]}" ; then
                e dvdbackup -F "${opts[@]}" || exit 1
        fi
+       sync
 }
 
 #
@@ -357,9 +359,12 @@ 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"
+       sync
 }
 
 ${doit_errors} && raw_read_dvd