Tar Archives | How to Create

tar -czf ./zip-file-2b-created.tar.gz -C $HOME/mirror.temp.assets scm-assets

-C is the path NOT in the zip file but exists on local file system
scm-assets is FOLDER IN CURRENT DIRECTORY stuffed FULL of the stuff you want to compress and zip.
So final parameter will BE IN THE ZIP FILE and when unpacking they will get a folder called scm-assets.

Leave a Reply

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