Primer prenosa stage area u vidu jedne datoteke na drugi host – Transfer stage area to another host

 

 

Primer prenosa stage area u vidu jedne datoteke na drugi host – Transfer stage area to another host 1

Napraviti komprimovanu datoteku od celog stabla direktorijuma stage - Make zip file of the stage area  1

Preneti datoteku u direktorijum /u01/stage na drugom hostu koristeći binarni ftp protokol - FTP file stage.tar.gz to another host to  directory /u01/stage  1

Dekomprimovati datoteku i raspakovati celo stablo - Decompress and untar 1

 

 

Napraviti komprimovanu datoteku od celog stabla direktorijuma stage - Make zip file of the stage area

 

cd /u01/stage

tar cvf - . | gzip > /u02/tmp/stage.tar.gz

 

Preneti datoteku u direktorijum /u01/stage na drugom hostu koristeći binarni ftp protokol - FTP file stage.tar.gz to another host to  directory /u01/stage

 

Dekomprimovati datoteku i raspakovati celo stablo - Decompress and untar

 

cd /u01/stage

gunzip /u02/tmp/stage.tar.gz

tar -xvf stage.tar

( alternativa: gzip –dc stage.tar.gz | tar xvf - )