Article 4YJF4 xorriso: copy folders and their files from hard-drive via sr0 onto dvd-iso.

xorriso: copy folders and their files from hard-drive via sr0 onto dvd-iso.

by
wayne1937
from LinuxQuestions.org on (#4YJF4)
xorriso: copy folders and their files from hard-drive via sr0 onto dvd/iso.

use multiple -map commands, each with a disk path and an ISO path.

///////////////////////////////////////////////////////////////////////////////////////

code/text below is appropriated from another/different code by:

Thomas Schmitt, scdbackup@gmx.net
GNU xorriso support mailing list, bug-xorriso@gnu.org

///////////////////////////////////////////////////////////////////////////////////////
dir_on_disk=-map "$HOME"/folder1 files1 \
dir_on_disk=-map "$HOME"/folder2 files2 \
dir_on_disk=-map "$HOME"/folder3 files3 \
dir_on_disk=-map "$HOME"/folder4 files4 \
...and so.on... \

dir_in_iso=/folder1.1 files1.1 \
dir_in_iso=/folder2.1 files2.1 \
dir_in_iso=/folder3.1 files3.1 \
dir_in-iso=/folder4.1 files4.1 \
...and so on... \

(The "" characters at the end of the text lines tells the shell that its
command line is not finished but continues in the next text line. used
here to avoid super long text lines and to show one command per text line.)

/////////////////////////////////////////////////////////////////////////////////////////

sudo code above: in hope others may add/correct code and show how to accomplish this transfer task.

/////////////////////////////////////////////////////////////////////////////////////////
code:
dir_on_disk="$HOME"/files_for_dvd
dir_in_iso=/files1

code:
xorriso -for_backup -outdev /dev/sr0 -blank as_needed -map "$dir_on_disk" "$dir_in_iso"

//////////////////////////////////////////////////////////////////////////////////////////

When program completes, checkread the dvd:
code:
xorriso -for_backup -indev /dev/sr0 -check_media --latest?d=yIl2AUoC8zA latest?i=puhumQSWBdU:bo1fgRDnMiw:F7zBnMy latest?i=puhumQSWBdU:bo1fgRDnMiw:V_sGLiP latest?d=qj6IDK7rITs latest?i=puhumQSWBdU:bo1fgRDnMiw:gIN9vFwpuhumQSWBdU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments