[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Backing up with tar and gzip
- Subject: Re: [cobalt-users] Backing up with tar and gzip
- From: Bruce Timberlake <bruce@xxxxxxxxxx>
- Date: Tue Feb 4 20:05:01 2003
- Organization: BRTNet.org
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> When I did tar -cfz file.tar.gz dirname received this error
>
> [root site8]# tar -cfz backupFeb5.tar.gz web
> tar: backupFeb5.tar.gz: Cannot stat: No such file or directory
> tar: Error exit delayed from previous errors
>
> it doesn?t compress
> I want to backup not to expand
You didn't put the 'f' immediately in front of the filename. I do
tar-with-compress all the time, so I _know_ this works:
tar -czvf file.tar.gz dirname
(I use the 'v' switch to show me all the filenames it's tar-ing, just
so I know I did the right thing).
To extract from a .tar.gz file, do
tar zxvf file.tar.gz
- --
Bruce Timberlake
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+QIyovLA2hUZ9kgwRAvGbAJ9e2eiQZ83qaOFh40n+nHcDuvMxFwCfcRVu
ZHYsYpdaS7km2BQjVFxrHHA=
=iYyP
-----END PGP SIGNATURE-----