Path: utzoo!utgpu!watmath!clyde!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.wizards Subject: Re: GNU-tar vs dump(1) Message-ID: <7427@chinet.chi.il.us> Date: 11 Jan 89 05:17:34 GMT References: <18008@adm.BRL.MIL> <4601@xenna.Encore.COM> <5176@lynx.UUCP> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 17 In article <5176@lynx.UUCP> m5@lynx.UUCP (Mike McNally) writes: >Does GNU tar have a mechanism for creating an artificial hierarchy on the >tape? In our tar, we added a switch like -C that specifies a prefix for >each following file name. This is very convenient (not for backup; for >file transfer). > It has the reverse: there is a command to change directories that you can intersperse with the directory names. This makes it possible to make it look like files from distant directories have the same parent. To create an artificial hierarchy on a tape, the "prefix" directories would have to exist, though not necessarily in the locations apparent on the tape. Leading '/'s are stripped (unconditionally) on both saves and restores. I'd prefer an option, perhaps with the ability to specify how many leading directory names to strip. Les Mikesell