Portal Home > Knowledgebase > Articles Database > Archiving a whole directory


Archiving a whole directory




Posted by Shin Asuka, 09-29-2007, 09:03 PM
Hello, How do I archive a whole directory using ssh? There is gzip and tar, but what command do I use to make an archive for a whole directory? [Directory ---> One_Archive.tar] It will be easier to transfer big directories this way by archiving it all into one. Thanks!

Posted by Patrick, 09-29-2007, 09:22 PM
That will create a file called archive.tgz with the contents of directory.

Posted by bear, 09-29-2007, 09:23 PM
From inside the directory: tar -cvzf filename.tgz ./*

Posted by absolut, 09-29-2007, 09:33 PM
I suggest you to get rar from www.rarsoft.com, then: rar a -r archive * rar is much faster than gzip and zip and have good compression rate.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Getting IP Whitelisted (Views: 633)