LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-04-2006, 05:57 PM   #1
Dannt
LQ Newbie
 
Registered: Oct 2006
Location: London, United Kingdom
Distribution: Ubuntu 6.10
Posts: 26

Rep: Reputation: 15
How can I uncompress a tar.gz file in a remote server using FTP?


Hi everybody..

I have recently migrated to Linux (fortunately )and now I am using FC5. I used the FTP utility that comes with the terminal in order to upload a large site, I first compressed it using Tar an Gz so I could make it a single file, but now my problem is that I don't know how to unpack it back in the remote server, I've been reading some of the information available on FTP and apparently running Gunzip or Tar is fairly simple but when I try to run either one on the remote prompt the programme just say that the command doesn't exists. Could anyone advice me on how this can be done?

Many thanks in advance

Dannt
 
Old 11-04-2006, 07:05 PM   #2
tidiman07
Member
 
Registered: Apr 2006
Distribution: Kubuntu 8.04
Posts: 129

Rep: Reputation: 15
my guess would be that the programs, tar or gz, don't exist on the remote system. what OS are you using on the remote system/server?
 
Old 11-04-2006, 07:55 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Without shell access to the remote server, you can't unpack it. If it is uploaded to your home directory, you at least have the right permissions to get in and untar it, assuming the web server is configured to show the contents of your home as a website. If the web server places the websites in the more "standard" location of /var/www or /var/www/html, you'll not only need shell access, but also root to untar in those directories.

Peace,
JimBass
 
Old 11-05-2006, 05:58 AM   #4
Dannt
LQ Newbie
 
Registered: Oct 2006
Location: London, United Kingdom
Distribution: Ubuntu 6.10
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks for your replies..

The sever I mentioned is a commercial hosting running Unix and the only access I have is to the directory where I have my website hosted, so I guess I won't be able to untar anything there as you guys said and I will need different way to upload files.

Thanks for your advice, that made things clearer for me now, I would appreciate anyway if you could let me know what would be the best way to upload a large site to that directory, I have around 20 folders with more that 400 files that need to be put up.

Best

Dannt
 
Old 11-05-2006, 08:44 AM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Use a graphical FTP client. One of these GUI programs can recurse through the directory structure of the site on your local machine, and copy each and every file and also create the subdirectories for you. Depending on your connection speed it may take a while, but it will be as simple as selecting the root of the website on the local machine, and copying it to the root on the server, and the program will do all the work while you sit back and wait. I have gftp on my machines for jobs like this, and that is a standard program, so yum can install it for Fedora.

Peace,
JimBass
 
Old 11-05-2006, 12:52 PM   #6
Dannt
LQ Newbie
 
Registered: Oct 2006
Location: London, United Kingdom
Distribution: Ubuntu 6.10
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks JimBass

That's exactly what I just did and the Gftp works very good and runs smoothly, it is all what I need to upload my files.

Best

Dannt
 
Old 11-05-2006, 12:56 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Very glad that it worked for you Dannt! Please hang out and pass on what you've learned to others!

Peace,
JimBass
 
Old 11-05-2006, 04:53 PM   #8
Dannt
LQ Newbie
 
Registered: Oct 2006
Location: London, United Kingdom
Distribution: Ubuntu 6.10
Posts: 26

Original Poster
Rep: Reputation: 15
Will do!

Cheers

Dannt
 
  


Reply

Tags
ftp, tar, untar, unzip, zip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to unzip/uncompress .tar.bz2 rajeshsfo Linux - Software 3 08-20-2006 12:48 AM
how to uncompress x.tar.tar ztdep Linux - Software 3 07-22-2005 12:02 PM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
Installing my ftp tar file...need help please vbp6us Linux - General 2 03-11-2003 02:27 PM
uncompress Tar.z file rkblk1 Linux - Software 2 08-02-2002 03:16 AM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration