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 12:51 PM
code that reads commands from the standard i/p and executes the commands Phrozen Smoke High Level Programming 4 01-22-2007 02:06 AM
tar and compress muru UNIX for Advanced & Expert Users 4 07-31-2006 09:23 PM
compress & cpio commands tayyabq8 SCO 1 09-07-2005 11:57 AM
Help on compress command rahulrathod SCO 1 09-28-2004 05:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-13-2006
kushti kushti is offline
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?
  #2 (permalink)  
Old 08-13-2006
nathan nathan is offline VIP Member  
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 -
  #3 (permalink)  
Old 08-13-2006
kushti kushti is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0