Results 1 to 8 of 8
-
09-06-2009, 10:03 AM #1Temporarily Suspended
- Join Date
- Mar 2008
- Posts
- 372
need help for compression via ssh
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,
-
09-06-2009, 11:57 AM #2Disabled
- Join Date
- Aug 2009
- Location
- rules.php
- Posts
- 111
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
-
09-06-2009, 12:03 PM #3Junior Guru Wannabe
- Join Date
- Mar 2007
- Posts
- 82
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
-
09-06-2009, 12:06 PM #4WHT Addict
- Join Date
- Jun 2008
- Location
- India
- Posts
- 130
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
-
09-07-2009, 06:30 AM #5Temporarily Suspended
- Join Date
- Mar 2008
- Posts
- 372
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
-
09-07-2009, 09:34 AM #6WHT Addict
- Join Date
- Jun 2008
- Location
- India
- Posts
- 130
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.
-
09-07-2009, 09:30 PM #7Junior Guru
- Join Date
- Jul 2009
- Posts
- 240
tar and gzip in 1
$tar zcvf myfilez.tgz /dir/to/files/
-
09-08-2009, 03:41 PM #8Newbie
- Join Date
- Sep 2007
- Posts
- 27
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
Similar Threads
-
db compression after compression and before compression size differs ??
By koolnhot in forum Hosting Security and TechnologyReplies: 3Last Post: 04-24-2009, 08:02 AM -
how do i use IIS compression
By 200369 in forum Web HostingReplies: 2Last Post: 03-26-2005, 08:32 PM -
MP3 compression?
By Merged in forum Web Hosting LoungeReplies: 6Last Post: 09-21-2004, 04:34 AM -
Compression
By Kattilyn in forum Programming DiscussionReplies: 8Last Post: 10-16-2003, 11:07 PM -
compression
By clocker1996 in forum Hosting Security and TechnologyReplies: 1Last Post: 12-13-2001, 05:55 PM