]> git.wh0rd.org Git - home.git/commitdiff
backup-dvd: sync disk after each major step
authorMike Frysinger <vapier@gentoo.org>
Fri, 23 Jan 2015 16:22:31 +0000 (11:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Jan 2015 16:22:31 +0000 (11:22 -0500)
.bin/backup-dvd

index ef79ddec93fee1fea4ed6e71b1a2814a1457649f..6dace1797fd13fb62a551c6a209a2858bf1f7f59 100755 (executable)
@@ -130,6 +130,7 @@ backup_dvd() {
        if ! e dvdbackup -M "${opts[@]}" ; then
                e dvdbackup -F "${opts[@]}" || exit 1
        fi
+       sync
 }
 
 #
@@ -360,6 +361,7 @@ mkiso_dvd() {
 
        du -h "${out}/${Volume}.iso"
        sudo chattr +i "${out}/${Volume}.iso"
+       sync
 }
 
 ${doit_errors} && raw_read_dvd