The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mv and compress on the fly simquest UNIX for Dummies Questions & Answers 1 02-22-2007 08:51 AM
code that reads commands from the standard i/p and executes the commands Phrozen Smoke High Level Programming 4 01-21-2007 10:06 PM
tar and compress muru UNIX for Advanced & Expert Users 4 07-31-2006 05:23 PM
compress & cpio commands tayyabq8 SCO 1 09-07-2005 07:57 AM
Help on compress command rahulrathod SCO 1 09-28-2004 01:11 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2006
Registered User
 

Join Date: Aug 2006
Posts: 2
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?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-13-2006
Supporter
 

Join Date: Jul 2006
Posts: 156
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 -
Reply With Quote
  #3 (permalink)  
Old 08-13-2006
Registered User
 

Join Date: Aug 2006
Posts: 2
Nathan I really appreciate your time helping me here - I will give this a go - thanks buddy - Stuart
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0