Expand tar.gz via FTP
- Started
- Last post
- 2 Responses
- frankosonik
Does anyone know how to expand a tar.gz archive remotely via FTP? I'm installing an application on my server, and rather than upload the individual files (13mb), I want to upload the tar.gz file (2mb) and expand it. I don't have root access to my server, so I can't enter any command line code. I've searched google, no dice. Thanks.
- toastie0
if you have access to the shell, it's
tar -zxvf filename.tar.gz
- randoman0
you cant do it via ftp, you will need to execute a command on your servers shell.
You don't need to be root to do this, but do need access to your server via telnet or SSH to execute an unpacking program such as gzip.
If they refuse to give you access, you could possibly write a php script that sends a system command to unzip it... this is provided your system has gzip or similar (which it should). In that case something similar to this: