You probably know on Mac OS X / MacOS a .ZIP archive can create very simpleBy selection of folders and folders that are to be archived, right-click, and the "context menu" select the option "Compress Files No."
In the current folder will be created archive file named "Archive.zip"
A more advanced form of archiving, used especially when we made archives that contain many files and folders, .tar.gz.
.tar.gz (GZIP) It comes with a archiving algorithm developed for UNIX / Linux systems.DEFLATE algorithmUsed to enable GZIP archive Better compression files with minimal or nonexistent. .ZIP Archives happens very often that archived files appear as "corrupt"And unusable.
users MacOS very simple to archive files from one or more folders using command line in Terminal.
The command line for archiving .tar.gz from Terminal is the same as on Linux:
-cvzf tar nume_arhiva.tar.gz folderdearhivat
In the scenario shown in the screenshot above, you will create the "wp-content.tar.gz" archive of the WordPress "wp-content" folder.
If you want to archive all pictures in a folder, you can use the command line:
-cvzf tar nume_arhiva.tar.gz /calea/folder/poze/*.jpg
Using "*" before the extension ".jpg", you only archive files using this extension.
Extracting an archive .tar.gz is via the command line:
tar -xvf nume_arhiva.tar.gz
Order archiving can be combined with advanced parameters. Use "-R"To archive for example, all pictures from several folders, ignoring other files that can be found there.