First Of all compress the file using following command
tar -cf name.tar name_of_folder
To copy a compressed folder from the server use following command
scp user@remotehost.com:/filepath/file.txt /some/localhost/folder
scp user@remotehost.com:/var/html/project.tar /var/www/
Keep Exploring
No comments:
Post a Comment