[kwlug-disc] Backup verification using cpio

Mike Purvis mpurvis at clearpathrobotics.com
Tue Sep 15 09:12:41 EDT 2015


cpio archives can be trivially appended to— one place that this is really
nice is for overlaying a preseed file onto a debian-installer FS image.

Mike

On 14 September 2015 at 21:50, Khalid Baheyeldin <kb at 2bits.com> wrote:

> The cpio tool provides a way for verifying backups, but it is a
> two-pass thing and a  prerequisite.
>
> For this to work, you have to use the "crc" output format for the archive:
>
> cpio -o -H crc .... > archive
>
> cpio -i --only-verify-crc < archive
>
> From the manual for this last option: "When reading a CRC format
> archive, only verify the CRC’s of each file in the archive, don’t
> actually extract the files"
>
> cpio is more complicated than tar and has a multitude of output
> formats, and that is probably why it never caught on like tar.
> --
> Khalid M. Baheyeldin
> 2bits.com, Inc.
> Fast Reliable Drupal
> Drupal optimization, development, customization and consulting.
> Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
> Simplicity is the ultimate sophistication. --   Leonardo da Vinci
> For every complex problem, there is an answer that is clear, simple,
> and wrong." -- H.L. Mencken
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20150915/ec0ffa2e/attachment.htm>


More information about the kwlug-disc mailing list