Keith C. Perry on 28 Apr 2016 13:37:30 -0700


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

Re: [PLUG] disk (filesystem) imaging one liner: corrections and a recent use case


True but I got away from tar for this type of work back when there were still issues with it understanding the special file types and I was converting my EXT3 systems to XFS.  Modern day tar is fine and I do still have it running for basic backups on two of my oldest systems that I never switched over to xfsdump (very low use boxes so it has been safe to do but I'm long overdue on fixing that).

cpio might be more efficient than tar for file system to file system copies but I'm not sure.  Plus then someone with just say,"why not use rsync?". 

Bottom line though, Unix / Linux usually has a numbers of ways to do things and fortunately they all tend to be pretty efficient.  The thing I like about cpio is that is very simple.  The initramfs point is something I forgot about.  I got reacquainted with that when I was playing around with Slackware-ARM awhile back.  

Building a custom initramfs is another lost art.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
Keith C. Perry, MS E.E. 
Owner, DAO Technologies LLC 
(O) +1.215.525.4165 x2033 
(M) +1.215.432.5167 
www.daotechnologies.com

----- Original Message -----
From: "Rich Freeman" <r-plug@thefreemanclan.net>
To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
Sent: Thursday, April 28, 2016 3:43:49 PM
Subject: Re: [PLUG] disk (filesystem) imaging one liner: corrections and a recent use case

On Thu, Apr 28, 2016 at 2:51 PM, JP Vossen <jp@jpsdomain.org> wrote:
> Very cool!  I was going to ask why you used `lzop` instead of just `ssh -C`
> but you already answered that in-line in that a) "-C" only compresses
> on-the-wire, and it's nice to have the target file compressed and b) "space
> tech."  :-)

Why cpio and not just tar?  I don't think cpio really has any
advantages these days unless you're making an initramfs.

-- 
Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug