[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Archiving content of a directory on a DVD-R.



*	From: "Thomas Schmitt" scdbackup@gmx.net
*	Date: Sun, 04 Nov 2018 18:48:45 +0100
> If you want to make use of xorriso's capability to create a mountable ISO
> filesystem with a copy of your directory, then you do not need tar.
> 
>   xorriso -for_backup -outdev /dev/sr0 -map . / \
>           -close on -commit \
>           -toc -check_md5 failure -- \
>           -eject all
> 
> This run ...

Thanks Thomas.  That's what I ended up using.  Two shell scripts are 
in http://easthope.ca/DebianPage.html under heading Backups. Backup() 
is used interactively to protect against failure of the SD card. 
FilesToDVD() makes archival records allowing convenient access to old 
copies of individual files.  Typically, Backup() executes in less than 
a minute.  Good for interactive use when working.

An example run of FilesToDVD() follows.

Thanks again,                   ... Peter E.

peter@dalton:~$ time FilesToDVD
Insert blank DVD-R.
xorriso 1.4.6 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev '/dev/sr0'
Media current: DVD-R sequential recording
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 4489m free
xorriso : UPDATE : 2668 files added in 1 seconds
Added to ISO image: directory '/'='/home/peter/MY0.Bak'
xorriso : UPDATE : Thank you for being patient. Working since 0 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 1 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 2 seconds.
xorriso : UPDATE : Writing:         16s    0.0%   fifo 100%  buf   0%    0.0xD 
  ...
xorriso : UPDATE : Writing:     380133s  100.0%   fifo   0%  buf 100%    0.0xD 
ISO image produced: 379983 sectors
Written to medium : 380133 sectors at LBA 0
Writing to '/dev/sr0' completed successfully.

xorriso : NOTE : Re-assessing -outdev '/dev/sr0'
  ...
xorriso : UPDATE :  742.1m content bytes read in 112 seconds = 5.0xD
Ok, session data match recorded md5.

real	5m12.980s
user	0m10.536s
sys	0m6.148s




-- 
Message composed and transmitted by software designed to avoid the 
complication and vulnerability of antivirus software.

123456789 123456789 123456789 123456789 123456789 123456789 123456789
Pender Is., BC: +1 604 670 0140     Washington State: +1 360 639 0202
http://easthope.ca/Peter.html              Bcc: peter at easthope. ca


Reply to: