tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Restrict mtree to specific directories
Date: Tue, 2 Jun 2020 16:14:20 +0200
From: Martin Husemann <martin%duskware.de@localhost>
Message-ID: <20200602141420.GA5252%mail.duskware.de@localhost>
| I would like to create directory hierachies from mtree spec files, but
| restrict this to selected hierachies (where the mtree files contain a
| bit more).
Seems like that rather than add more complexity to mtree, the answer
here is just to use a different mtree spec file.
That is, something like
grep whatever original-spec-file [ | grep otherstuff ]... >/tmp/temp-spec
mtree -f /tmp/temp-spec
If a change/addition to mtree is desirable, IMO, it would be to
allow "-f -" so the temp file isn't needed (just read spec from stdin).
kre
Home |
Main Index |
Thread Index |
Old Index