Linux : Upload the files and directory tree to remote ftp server


When you host your web site remotely and use the open source software’s like wiki, phpbb etc uploading them is pain from UNIX or Linux based computer, especially when these software releases new security fixes you need to upload bunch of files and subdirectories. ncftpget client program is neat handy utility for recursive remote ftp server uploading purpose.
Try ncftpput as follows:
$ ncftpput –R –v –u “username” ftp.nixcraft.biz /nixcraft/forum /tmp/phpbb
-u “username” : Ftp server username
-v : Verbose i.e. show upload progress
-R : Recursive mode; copy whole directory trees.
ftp.nixcraft.biz : Remote ftp server
/nixcraft/forum : Remote ftp server directory where all files and subdirectories will be uploaded
/tmp/phpbb : Local directory (or list of files) to upload remote ftp server directory /nixcraft/forum
1) See ftptreeupload.bash script to copy all files and subdirectories recursively and upload them to remote FTP server (copy local all directories/tree to remote ftp server)
2) ncftpput can be downloaded from http://www.ncftp.com/ncftp/ and works with FreeBSD, Solaris and all most all UNIX variant

Advertisements
Published in: on February 4, 2010 at 6:56 pm  Comments Off on Linux : Upload the files and directory tree to remote ftp server  
%d bloggers like this: