To create a tar file, run


Once backup.tar file is created, you can make it tar.gz with command

Exclude a folder from tar file

To exclude a folder, you can use –exclude option.

List content of a tar file

If you want to exclude a folder from the file list, use

This will exclude all files that are inside folder “home/haridy/Maildir”. You can use multiple –exclude if required.

Using tar over SSH Session
Split Large file into smaller files

Leave a Reply

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