IndianWebPortal.com

Something Different In Linux

Home » Knowledge » rsync commands

rsync commands

Posted by Rishikesh Vispute Categories: Knowledge

1) If you want to migrate  “/home/test/public_html” directory  to  another server(destination ) by using rsync command then run following command on the source server so the public_html directory migrated  from source server to destination server (192.168.0.1 )

rsync -vrplogDtH -e "ssh -p 22" /home/test/public_html root@192.168.0.1:/home/test/

Note : Replace “22” to exact server port number and 192.168.0.1 replace with the Destination server ip address.


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...