How To Upload Directory Tree To Remote FTP Server Recursively in Linux

1 1 1 1 1 How To Upload Directory Tree To Remote FTP Server Recursively in Linux5.00Rating 2.60 (10 Votes)

When you host your web site remotely and the ftp server is the only way to upload all files including subdirectroies. You need to use special file transfer program such as ncftpget or ncftpput for recursive remote ftp server uploading and downloading purpose. Ncftp is considered as an improved FTP client. Ncftp's improvements include support for command line editing, command histories, recursive gets/puts, automatic anonymous logins, and much more.

1. Install ncftp client

Type the following command under Debian/Ubuntu Linux to install ncftp client:
$ sudo apt-get install ncftp

Read more: How To Upload Directory Tree To Remote FTP Server Recursively in Linux

How to create .zip files in Ubuntu Linux

1 1 1 1 1 How to create .zip files in Ubuntu Linux5.00Rating 4.90 (408 Votes)

On a Windows machine, creating a zip archive is very easy: you can right-click on a file or folder, open "Send" menu and then click "Compressed ZIP folder". Or, you can use more advanced archivers like 7-Zip archiver, or WinRAR archiver. Their interface is quite self-explanatory, and easy to use.

But sometimes, you need to create a .zip archive on a Linux machine. This is required when doing a website backup, before downloading large number of files and other tasks.

To create .zip files in Ubuntu Linux, in the command line type:

zip -r archive-name directory-name

This will create archive named "archive-name.zip" and add directory-name directory to it, including all subdirectories.

For example, to create an archive of directory /home/user/www, issue the following command:

zip -r ./www1.zip /home/user/www

This will create www1.zip file in the current directory and add the contents of folder /home/user/www including all subdirectories to this archive.

See complete usage of zip command in Linux here

Or, you can order entire custom Linux software development from IQ Direct Inc.

 

Thursday the 23rd.