rsync from one server to another

Basically, $ rsync options source destination Synchronize Files From Local to Remote (Plesk to cPanel) $ rsync -avz /var/www/vhosts/domain.com/httpdocs/ sshuser@192.168.200.99:/home/user/public_html/ Synchronize Files From Remote to Local )cPanel to Plesk) $ rsync -avz sshuser@198.50.162.99:/home/username/public_html/ /var/www/vhosts/domain.com/httpdocs/ Here is a short summary of the options available in rsync. Please refer to the detailedRead More…

Export/Import Mysql Database

Export a database mysql # mysqldump -u -p username database_name > dbname.sql Plesk Server # mysqldump -u admin -p`cat /etc/psa/.psa.shadow` wordpress_database > domain_backup_7.16.14.sql To export a single table from your database you would use the following command: # mysqldump -p –user=username database_name tableName > tableName.sql Import a database or tableRead More…