ncftp: getting and putting files over ftp

getting files and directories

use ncftp to connect to a remote server and get a directory and everything in it.

[code]ncftpget -R -u $FTP_USER $FTP_SERVER $LOCAL_DIR $REMOTE_SERVER_DIR[/code]

putting files and directories

to upload a directory to a remote server:

[code]ncftpput -R -u $FTP_USER $FTP_SERVER $REMOTE_SERVER_DIR $LOCAL_DIR[/code]

a few flags

-R recursively copy directories

-u the username to use

Leave a Reply

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