Saturday, 4 February 2012

Different methods to copy the remote contents



# ncftpget -R -v -u ftp_user -p "ftp_password" FTP_host destiny_dir source_dir 

Eg: ncftpget -R -u user -p test ftp.domain.com /home/user/ftp /home/user1
Here /home/user1 contents will be copy to /home/user/ftp with ftp user and password test


# rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/

Eg: rsync -avz -e "ssh -p 594" root@192.168.1.2:/etc/guest /var/www/html

# scp -P 594 root@192.168.1.2:/etc/guest /var/www/html



No comments:

Post a Comment