Burn CD’s and DVD’s from emacs using dired and dvd+rw-tools

I recently explored burning discs from the command line. To make things even more convenient, I can employ emacs dired to help in selecting the files. That is, suppose I have some files in a directory opened in dired. I can mark the files I want to be burnt, and invoke ! (dired-do-shell-command) on those files with the command:

 <pre class="src src-sh">growisofs -dvd-compat -input-charset=ISO-8859-1 -full-iso9660-filenames -Z /dev/sr0 -R -J -pad * &amp;&amp; eject /dev/sr0

I can also invoke & (dired-do-async-shell-command) with the above command without the && eject /dev/sr0 (the * arguments will also be passed to this) to continue using the current emacs instance and view the progress in stdout.

Burn dvd from the command line

I recently had to back files from my Ubuntu-based NAS. I initially used xfburn, a medium-weight burning software. It does a pretty good job. However, I decided to burn via the command line to refrain from pointing and clicking. I found dvd+rw-tools. Some simple examples are found here; the full filename solution was found here. Suppose the dvd burner is /dev/sr0 (found from scanning through dmesg | less). Then I can burn files with:

 <pre class="src src-sh">growisofs -dvd-compat -input-charset=ISO-8859-1 -full-iso9660-filenames -Z /dev/sr0 -R -J -pad <span style="color: #ffa07a;">"/path/to/files"</span> <span style="color: #ff4500;">## </span><span style="color: #ff4500;">can use -dry-run</span>

eject /dev/sr0