Portal Home > Knowledgebase > Articles Database > need help for compression via ssh


need help for compression via ssh




Posted by koolnhot, 09-06-2009, 10:03 AM
I would need some assistance for ssh codes to compress via tar, a file, a folder and the fastest mode to tar ssh command please, with an example,

Posted by supportproTech, 09-06-2009, 11:57 AM
Please make yourself clear. If you are looking for compressed ssh connection, you can use "-C" option with ssh. Eg: ssh -C 192.168.0.112

Posted by createsurvey, 09-06-2009, 12:03 PM
koolnhot, if you are connecting to your server via SSH and want to tar something remotely, use these commands: create file.tar and include file1 file2 file3 from the current folder: tar -cf file.tar file1 file2 file3 create dir.tar and include the contents of dir1 and dir2 (recursive): tar -cvf dir.tar dir1 dir2

Posted by ianeeshps, 09-06-2009, 12:06 PM
what you mean by that...are you looking for compress mode of ssh then ssh -C will work as supportpro suggested. otherwise tar -cvf zip will help you out

Posted by koolnhot, 09-07-2009, 06:30 AM
hi I am looking to tar via ssh and not in compressed mode of ssh sorry for being un-clear earlier via ssh, I would like to tar dirs and files

Posted by ianeeshps, 09-07-2009, 09:34 AM
okay the you can do tar -xvf dir.tar dir and then to compress with gzip if you would like to have g gzip dir.tar this will compress and easy and commonly used method. sometimes it seems t hat normal zip getting problems depends on diff versions.

Posted by DJMizt73, 09-07-2009, 09:30 PM
tar and gzip in 1 $tar zcvf myfilez.tgz /dir/to/files/

Posted by part, 09-08-2009, 03:41 PM
Have you checked the answers you got in these threads? http://www.webhostingtalk.com/showthread.php?t=867892 http://www.webhostingtalk.com/showthread.php?t=888094 This looks like what you want: http://www.webhostingtalk.com/showpo...69&postcount=6



Was this answer helpful?

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

Also Read
Nameserver lookup (Views: 495)