Split Large file into smaller files

Today i was transfer a large 7 GB backp file into another server. Every time i copy it get disconnected after some time and i have to transfer again. When trasftering large file, it is better split it into smaller files, this way if one of the file trafer failed, you only need to trasfer this specific file again. With rsync, it make it easy as you can sync all files to remote server.

To split a large file into smaller parts, run

This command will split large file into smaller files with 500 MB size each. You can specify a differnt size if you need.

Once all files are on new server, you can combine it into one file with command

When you do cat *, make sure only split files are in current folder.

Related Posts

tar
rsync

Tags: No tags

Add a Comment

Your email address will not be published. Required fields are marked *