Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2014 23:22:37 +0200
From:      Polytropon <freebsd@edvax.de>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cpio and hard links
Message-ID:  <20140727232237.71735292.freebsd@edvax.de>
In-Reply-To: <13472.1406495024@server1.tristatelogic.com>
References:  <13472.1406495024@server1.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 27 Jul 2014 14:03:44 -0700, Ronald F. Guilmette wrote:
> For the the cpio program that is part of FreeBSD, is there any option
> which would have the effect of causing cpio to only archive a single
> instance of the data associated with each unique inode... as tar apparently
> does, by default?

>From reading "man cpio", I don't see that option mentioned.
The only related option is -L, but it is to be used for symbolic
links (and turns them into regular files). If you need this
functionality, you'll probably be better off with tar, or you
put tar archives into a cpio pipeline...

Keep in mind not all archiving, compressing and transmission
tools share the same amount of dedication toward the file system
features (links, modes, user:group, permissions, attributes
and so on). In case of cpio, I just think the requested feature
simply is not part of what cpio can do (unlike tar, as you've
correctly mentioned).


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140727232237.71735292.freebsd>