Bobcares

Upload files via FTP using NCFTPPUT with ease

by | Nov 8, 2021

Upload files via FTP using NCFTPPUT with Bobcares by your side.

At Bobcares, we offer assistance with every query that comes our way as a part of our much sought-after Server Management Service.

Let’s take a look at how our skilled Support Techs uploaded files with FTP using NCFTPPUT.

 

Why upload files via FTP using NCFTPPUT?

Do you have a lot of files to be uploaded to the website with no access other than FTP? Well, we recommend a GUI tool that enables you to just drag and drop your files and get the job done. It can also be done via the command line ncftpput tool.

 

How to use command line tool NCFTPPUT to upload files via FTP

Although we can upload files with a GUI tool, it will take a longer time than a command-line tool. So our Support Engineers did the following when one of our customers requested help with uploading a large number of files recently:

    1. First, we will tar up and gzip the directory to be uploaded on the local machine.
    2. Then, copy the directory with sftp to a VPS.
    3. Next, decompress it.
    4. After that, use the ncftpput tool to copy it to the website.

We can complete this entire process within a few minutes, compared to the thirty minutes it would have taken to do the same task with a GUI.

 

How to use command line tool NCFTPPUT to recursively copy a directory

Let’s assume that the directory with the files to be uploaded is called “mydirectory”.

Then the current working directory will be similar to this :

$ ls -l total 8380 drwx------ 5 bob bob 4095 Aug 23 2021 mydirectory 
-rw-r--r-- 1 bob bob 8418790 Apr 9 12:25 mydirectory.tar.gz

After that, we will recursively upload mydirectory directory with this command:

ncftpput -u [username] -p [password] -R [hostname] / mydirectory

Remember to replace username, password, and hostname with the correct values. Here -R informs ncftpput to recursively upload while / is the destination directory.

[Need help with another query? Give us a call today.]

 

Conclusion

At the end of the day, we learned from the skilled Support Engineers at Bobcares how to save time while uploading files by using ncftpput tool rather than relying on the GUI tools.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.