Powered By Blogger

Search This Blog

19 January, 2013

Creating zip archive in linux and move a site from linux server to windows.


Creating zip archive in linux

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 FILE_NAME.ZIP FOLDER_HERE
# zip -9 -y -r -q httpdocs.zip 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 74.53.87.116
Connected to 74.53.87.116 (74.53.87.116).
220 Microsoft FTP Service
Name (74.53.87.116:root): administrator
331 Password required for administrator.
Password:
230 User administrator logged in.
Remote system type is Windows_NT.
ftp> bin
200 Type set to I.
ftp> put httpdocs.zip
local: httpdocs.zip remote: httpdocs.zip
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)
ftp>

No comments:

Post a Comment