rsync and mysqldump mysql for wordpress

rsync -auvz –rsh=”ssh -p 22 user@example.com:/var/www/www.example.it/www /vagrant/www/wordpress-website mysqldump –add-drop-table –lock-tables=false  -h localhost -u user -p databasename | gzip > website.bak.sql.gz mysql -u root -p -h localhost wordpress_fmcinema < data.sql

Rsync

rsync -avz -e “ssh -p 22” /home/user/Scrivania/dati user@esempio.it:/home/user/dati copiare file da locale a server con rsync