How to quickly divide a file into smaller segments with 7zip on RedHat

I have a very large file ~ 1.7 TB that’s causing me some issues with its transfer over NFS.

I use 7z to split it into into multiple smaller files and then transfer them:

7za -v900g -mx0 a MY_BIG_FILE_SPLITTED.7z /MY_BIG_FILE

Where:

7za: is the 7zip executable

-v900g: the size of the splitted files, here it’s 900 GB, you can alternatively use g, m, k or b

-mx0: Zero compression ratio, in other words: copy mode

a: destination file

Note: To install 7zip on RedHat, just use “yum install p7zip”

Enjoy!

Sources:

 

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s