Archive tar.gz files and folders

I am sure almost everyone know this already but when I first started working with Linux and Unix I needed help and had to have and expert show me how to do this. I even have to pull up my notes every now and again.

User this command to compress a folder using gzip and tar
tar -cvzf /destination/file_name.tar.gz /source/folder_name
Now you can un zip/tar it with this command
tar -xzf /folder/file_name.tar.gz
There are a ton of switches you can use for this. I am just doing an archive and putting it in the folder for rsync server to pick it up for archival.


Popular posts from this blog

Console over SSH (ONTAP)

Brocade Zone Setup

vFoglight Purge Stale Objects (Groovy Script)