its just my note on how to copy files between VM, this command can only works when ssh service is already set and running
to do that, use the following commands
This script will copy file from something.com with access using user root, the file that will be copied is somelog.txt in directory /var/log in something.com and will be put on /home/someuser folder
to do that, use the following commands
scp user@host:filepath storage_path
This script will copy file from something.com with access using user root, the file that will be copied is somelog.txt in directory /var/log in something.com and will be put on /home/someuser folder
scp root@something.com:/var/log/somelog.txt /home/someuser
Additional
To copy all files and directory, you can use -rscp -r user@host:filepath storage_path
No comments :
Post a Comment