SSH Compress Commands | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

SSH Compress Commands

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-13-2006
kushti kushti is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 13 August 2006, 5:13 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
SSH Compress Commands

I am brand new to unix and am hoping someone can start me in the right direction.

I hope I have the right forum but if not can a moderator move this thread to the right area.

I am moving servers and need to back up a folder and its sub folders into a .tar.gz file then want to upload that file to my new server and decompress it.

I have used SSH to depress my sql databases without a problem because I found the commands to do that but I am lost with with backing up and compressing a folder and sub folders to a .tar.gz - I am not even sure if this is possible?

Can any one help me on this?
Sponsored Links
    #2  
Old 08-13-2006
nathan nathan is offline VIP Member  
Supporter
 
Join Date: Jul 2006
Last Activity: 15 February 2012, 11:03 AM EST
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
What "ssh commands" are you using? My guess is that they are commands that can be run from any UNIX command line, and you just happen to be using SSH to execute them.

Get a manual on 'tar', and one on 'gzip' for info on the "tar.gz" file format. One way to do it is this:
Code:
tar cf - mydir/ | gzip > mydir.tgz

This will compress the "mydir" directory and store in a "tgz" file. To decompress,
Code:
gzip -dc mydir.tgz | tar xf -

Sponsored Links
    #3  
Old 08-13-2006
kushti kushti is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 13 August 2006, 5:13 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nathan I really appreciate your time helping me here - I will give this a go - thanks buddy - Stuart
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
what is the difference between commands compress, pack and gzip frintocf Shell Programming and Scripting 1 09-24-2011 05:26 AM
Issue: Compress in unix server and FTP to windows and open the compress file using Winzip sakthifire UNIX for Dummies Questions & Answers 4 11-02-2009 08:38 AM
Can BASH execute commands on a remote server when the commands are embedded in shell bash_in_my_head Shell Programming and Scripting 1 12-04-2008 12:51 AM
code that reads commands from the standard i/p and executes the commands Phrozen Smoke Programming 4 01-22-2007 01:06 AM
compress & cpio commands tayyabq8 SCO 1 09-07-2005 10:57 AM



All times are GMT -4. The time now is 03:15 AM.