How to Make a Tar.GZ File
A tar (tape archive) file is a common Linux/Unix archive format. As an archive, it simply creates one file that contains many other files. There is no compression involved. Tarfiles (or tarballs) can be quite large if there are many large files contained within it. Gzip is a compression utility for Linux/Unix, similar to the Microsoft Windows zip utility. Used in conjunction with tar, the resulting file is both archived and compressed. This is a common way in which Open Source code is delivered; it is also useful for backups.
Instructions
-
Instructions
-
1
Open a terminal window.
The terminal window will be found under the Applications->Utilities (GNOME) or Start->Utilities (KDE). -
2
Copy the files that you want to archive into a common Directory
cp file1 file2 Backup/ -
-
3
Create the tar archive.
tar -cvf backup.tar Backup/
The options are:
c - create the file
v - verbose (print the progress to the screen)
f - file (the name of the tar file) -
4
Use gzip to compress the file.
gzip backup.tar
-
1