Create a archive in SSH using tar.gz

Posted 2 years ago

Use “tar” in conjunction with flags to backup your folder.
z = Tells tar to gzip the folder
c = Enable gzip compression
v = Verbose, this outputs the files to the terminal that’s currently being compressed
f = Create a file

Click here to see how to unzip the backup.tgz


tar zcvf archive-name.tar.gz /folder/to/archive