Large file split and join in linux

Let’s assume we have a large file of 102 GB and named as “vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo”. We’d like to split this large file into 10GB of partial file. Let’s apply the split command as below-

split -b 102400M vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo repo.

Wait for a while, the execution continues, and once over, you’ll find 11 split files altogether- Continue reading “Large file split and join in linux” »

Share

Archiving a large backup across multiple discs on Linux

We have two options (as we obviously don’t want to delete our data!)

  • Use a different backup medium
  • Split the backup across multiple volumes

Sometimes the former just isn’t appropriate, as much because of the cost of harddrives vs Optical Media (i.e. CD’s/DVD’s).

This short tutorial will explain how to create a single backup archive, and then split it across multiple CD’s/DVD’s.

In this tutorial, I want to backup to DVD (as my photo collection would require more than 40 CD’s).

So from BASH;

tar -cf Pictures_backup.tar Pictures/
split -d -b 4480m Pictures.backup.tar

This will then give you multiple files to burn to disc (each beginning with x). Burn these files with your favourite CD Burner. To restore the files, copy them all to one directory and then run the following Continue reading “Archiving a large backup across multiple discs on Linux” »

Share