LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can I uncompress a tar.gz file in a remote server using FTP? (http://www.linuxquestions.org/questions/linux-networking-3/how-can-i-uncompress-a-tar-gz-file-in-a-remote-server-using-ftp-498674/)

Dannt 11-04-2006 05:57 PM

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

tidiman07 11-04-2006 07:05 PM

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?

JimBass 11-04-2006 07:55 PM

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

Dannt 11-05-2006 05:58 AM

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

JimBass 11-05-2006 08:44 AM

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

Dannt 11-05-2006 12:52 PM

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

JimBass 11-05-2006 12:56 PM

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

Peace,
JimBass

Dannt 11-05-2006 04:53 PM

Will do!

Cheers

Dannt


All times are GMT -5. The time now is 10:00 AM.