HostOnNet Blog

Creating zip archive in linux

Looking for Linux Server Admin or WordPress Expert? We can help.

Today i want to move a site from linux server to windows.

Moving with FTP takes long. Normal tar.gz transfer will not work as windows by default do not support extraction of tar.gz file.

To create a ZIP file on linux, run

# zip -9 -y -r -q httpdocs

Now i transfer the file to remote windows server with FTP. The server have FTP access configured for user administrator, this is not secure, but that is how the server is configured.

# ftp
Connected to (
220 Microsoft FTP Service
Name ( administrator
331 Password required for administrator.
230 User administrator logged in.
Remote system type is Windows_NT.
ftp> bin
200 Type set to I.
ftp> put
local: remote:
227 Entering Passive Mode (74,53,87,146,16,157).
125 Data connection already open; Transfer starting.
226 Transfer complete.
115400108 bytes sent in 11.8 secs (9.6e+03 Kbytes/sec)

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.