How to Create a SAR Archive?

How to Create a SAR Archive?

💡
Версия на русском: Как создать SAR архив?

Explanation of the Question

In one of my previous posts, I shared material on how to extract a SAR archive.

See the post: How to Extract a SAR File

Below are a few words on how to create a SAR archive in a Windows environment.

Solution


Let’s assume you have a text file with the following content:

To add this text file to a SAR archive, you’ll need the same SAPCAR utility distribution and to execute the following command:

SAPCAR -cvf my_test_sar readme.txt

Where:

  • my_test_sar is the name of your future archive;
  • readme.txt is the name of the file you want to include in the archive.

Run this command.

0:00
/0:12

Then, delete the text file and try extracting the archive you just created.

0:00
/0:20

It may seem like a small thing, but you never know when it might come in handy.