Tema: Re: Archyvavimas
Autorius: Nerijus Kislauskas
Data: 2010-01-13 10:20:48
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denisas wrote:
> Sveiki, toks galbut ir kvailas klausimas, bet manau atleisite.
> 
> Su komanda tar -cvzpf /home/arhyvas.tar.gz /home/dir/
> sukuriamas archyvas kuriame buna issaugota failu medis.
> T.y. atidarius archyva matoma /home/dir/file
> 
> Nerandu komandos, kad padaryti archyva, kad jame nebutu failu medzio.
> Manau supratote, ko noriu.
> 
> Atleiskite uz zargonus. ;)
> 

Atleidžiame.

$ man tar

The final arguments to tar are the names of the files or directories
which should be archived. The use of a directory name always implies
that the subdirectories below should be included in the archive.

Kitaip tariant:

$ cd /home/dir/
$ tar -cvzpf /home/arhyvas.tar.gz .

Archyvo peržiūra:

$ tar -zt < /home/archyvas.tar.gz
- --
Pagarbiai
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktNgmAACgkQVaDswePJAMWQCwCcCBLasOjCLBeQpVymj+a6d3XR
dO0AnjONxpTC03hFOAHzB57+uoen+Phl
=Dv0B
-----END PGP SIGNATURE-----