|
|
Re: compressing directories using tar/gzip
|
|
08/24/2009 5:51 AM
post36487
|
Re: compressing directories using tar/gzip
Hi Radek,
first, give the command line options to 'tar' in the correct order.
'-c', '-v', and '-z' are boolean options, and as such may appear in any order. '-f', though, is an option taking an
argument -the output file name-, which must appear right after the 'f' (give or take a space or two). So please see what
happens when you do
# tar -czvf /tmp/etc.tar.gz /etc
You should still see
tar: Removing leading `/' from member names
..that's pefectly ok.
You should no longer see
tar: /tmp/etc.tar.gz: Cannot stat: No such file or directory
I'm not quite sure about the
tar: /etc/: Cannot savedir: Function not implemented
Cannot savedir: Function not implemented
messages - I wasn't able to reproduce those. Is your /etc directory special in any way? Maybe just some files inlined
into your boot image?
Please try running tar on some other directory - one that really exists in your file system, and let me know.
Kind regards,
- Thomas
|
|
|
|
|