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

Re: Re[2]: LIP General issues



Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il> wrote:
|That's what Eli tried to explain you - use `tar xvpf'

I'm not quite sure this is enough, does it handle sparse files (files
with holes in them)? and other times of files?

When I copy with gtar, I do something like (I use long names for
clarification, some of the options don't have short equivalents):

gtar --create --file - --atime-preserve --preserve --sparse ... |
gtar --extract --file - --preserve --sparse

This is more-or-less the basic set of options, remarks:

1. --preserve might be redundent in the first tar
2. --sparse might be redundent in the second tar
3. you can add options to ignore core and backup files (--exclude or
   --exclude-from, I think you can use shell wildcards).  Or you can
   use a sophisticated find(1) and use '--files-from -'
4. you can add the --one-file-system option
5. there might be issues of telling the extracting tar to persist
   over failed reads, should be checked carefully (e.g. if you get
   "Broken pipe" (from the writing tar) that means the reading tar
   quit too early, also a "gzip: stdin: unexpected end of file" from
   the reading tar might mean troubles).  I never remember what exactly
   are the options, but you should be watchfull for that.

Cheers,

--Amos

--Amos Shapira                    | "Of course Australia was marked for
133 Shlomo Ben-Yosef st.          |  glory, for its people had been chosen
Jerusalem 93 805                  |  by the finest judges in England."
ISRAEL             amos@dsi.co.il |                     -- Anonymous


References: