Create tar file
tar -zvcf file.tar.gz file1 file2 dir1 dir2
eg :- tar -zcvf CLN_12_1_3_AR.tar.gz CLN_12_1_3_AR
>> Details of tar :-
tar -tvf backup.tar.gz
>> UNTAR in current location
tar -xvf <file>.tar.gz
>> UNTAR in one particular directory
tar -xvf <file>.tar.gz -C /Oracle/test2
eg :- tar -xvf test_bkp-31Dec13.tar.gz -C /Oracle/test_bkp2
tar -zvcf file.tar.gz file1 file2 dir1 dir2
eg :- tar -zcvf CLN_12_1_3_AR.tar.gz CLN_12_1_3_AR
>> Details of tar :-
tar -tvf backup.tar.gz
>> UNTAR in current location
tar -xvf <file>.tar.gz
>> UNTAR in one particular directory
tar -xvf <file>.tar.gz -C /Oracle/test2
eg :- tar -xvf test_bkp-31Dec13.tar.gz -C /Oracle/test_bkp2
No comments:
Post a Comment