Cent OS 7

Započeo sagarkapoor, 21.04.2017, 13:23

« prethodna tema - sledeća tema »
Idi dole

sagarkapoor

Hi,

Can i split large tar archive file in to multiple files?


Thanks

Miloš

#1
08.05.2017, 16:31 Poslednja Izmena: 08.05.2017, 16:35 od Miloš
Try with command:
split

1. Check size:
ls -lh file_name.tar.bz2

2. Split (exmp 10Mb):
split -b 10M file_name.tar.bz2 "file_name.tar.bz2.part"
 
     
  - b 10M specify the size of each block
  "file_name.tar.bz2.part" is the prefix in the name of each block file created after splitting

3. Check new blocks:>
ls -lh file_name.tar.bz2.parta*



To join back all the blocks or tar files use command:
cat

Exmp:
cat file_name.tar.bz2.parta* > backup.tar.gz.joined
 

;)


Dip. Inž. elektrotehnike i računarskog inženjerstva (Moduo RI).
Zaposlen u firmi Infolab d.o.o. na poziciji DevOps Inženjer (odnosno system administrator i release manager).

Idi gore