Upload Directory Tree To Remote FTP Server Recursively using NCFTP Rumi, May 5, 2018 Install ncftp client Type the following apt-get command under Debian / Ubuntu Linux to install ncftp client, run: $ sudo apt-get install ncftp If you are RHEL / CentOS / Fedora Linux user, type the following yum command to install ncftp client (first turn on EPEL repo): # yum install ncftp Syntax and examples: The syntax is as follows: ncftpput ftp-host-name /path/to/remote/dir /path/to/local/dir ncftpput -options ftp-host-name /path/to/remote/dir /path/to/local/dir Try the ncftpput client command as follows: ncftpput -R -v -u "username" ftp.yourdomain.com /www/forum /tmp/phpbb Where, -u “username” : Ftp server username -v : Verbose i.e. show upload progress -R : Recursive mode; copy whole directory trees. ftp.yourdomain.com : Remote ftp server (use FQDN or IP). /www/forum : Remote ftp server directory where all files and subdirectories will be uploaded. /www/phpbb : Local directory (or list of files) to upload remote ftp server directory /www/forum You can pass the password with -p option: ncftpput -R -v -u "username" -p "passwordHere" ftp.yourdomain.com /www/forum /tmp/phpbb You can use port number 2021 instead of the default FTP service port # 21 as follows: ncftpput -R -v -u "username" -p "passwordHere" -P 2021 ftp.yourdomain.com /www/forum /tmp/phpbb Related Administrations Configurations (Linux) FTP ClientNCFTP
Force HTTPS / SSL using .htaccess and mod_rewrite February 7, 2013 Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]… Read More
High Availability: Configure Piranha for HTTP, HTTPS and MySQL April 24, 2013April 24, 2013 In this post we will complete over the Piranha configuration with HTTP and HTTPS load balancing using direct-routing with firewall marks and MySQL load balancing using direct-routing only. HTTP/HTTPS will need to be accessed by users via virtual public IP 130.44.50.120 while MySQL service will be accessed by web servers… Read More
Install webmin in Centos 7 March 9, 2018 Step 1 — Installing Webmin First, we need to add the Webmin repository so that we can easily install and update Webmin using our package manager. We do this by adding a new file called /etc/yum.repos.d/webmin.repo that contains information about the new repository. Create and open this new file using… Read More