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

Archiving content of a directory on a DVD-R.



How is this for archiving the content of a directory?

  pushd <aDirectory> ;
  printf "Insert blank DVD-R."; read t ;
  tar -vcpzf - * | xorriso -indev /dev/sr0 -add -- -commit ;
  xorriso -indev /dev/sr0 -du / -- -toc 2>&1 ;
  xorriso -indev /dev/sr0 -eject ;
  echo "Content of <aDirectory> archived in DVD-R." ;
  popd ;
     
And retrival.

  pushd <anEmptyDirectory> ;
  printf "Insert a DVD-R containing a tar archive."; read t ;
  xorriso -indev /dev/sr0 -toc 2>&1 ;
  xorriso -indev /dev/sr0 -extract / -- | tar -vxf ;
  xorriso -indev /dev/sr0 -eject ;
  popd ;

Comments?  Suggestions?

Thanks,            ... Peter E.

-- 
Message composed and transmitted by software designed to avoid the 
need, overhead and vulnerability of antivirus software.

123456789 123456789 123456789 123456789 123456789 123456789 123456789
Tel: +1 360 639 0202                                  +1 
http://easthope.ca/Peter.html              Bcc: peter at easthope. ca


Reply to: