![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mv and compress on the fly | simquest | UNIX for Dummies Questions & Answers | 1 | 02-22-2007 09:51 AM |
| code that reads commands from the standard i/p and executes the commands | Phrozen Smoke | High Level Programming | 4 | 01-21-2007 11: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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 Code:
gzip -dc mydir.tgz | tar xf - |
|
#3
|
|||
|
|||
|
Nathan I really appreciate your time helping me here - I will give this a go - thanks buddy - Stuart
|
|||
| Google The UNIX and Linux Forums |