Tips Migration

Retrouvez les tips qui peuvent servir pour migrer un site

RSYNC

rsync -ave ssh 62.171.136.91:/home/fnv/public_html ~/htdocs

rsync -ave ssh root@62.171.136.91:/home/fnv/public_html ~/htdocs

Si Clé SSH ⇒

eval $(ssh-agent)

chmod la clé en 600

ssh-add lacle

rsync -av -e 'ssh -p 18765' u373-vzrdb28wgc9c@m33.siteground.biz:/home/u373-vzrdb28wgc9c/www/premierleaguebrasil.com.br/public_html/ ~/htdocs

Pratique: exclure le dossier de cache

rsync -av -e 'ssh -p 18765' --exclude 'wp-content/cache/*' u373-vzrdb28wgc9c@m33.siteground.biz:/home/u373-vzrdb28wgc9c/www/premierleaguebrasil.com.br/public_html/ ~/htdocs

Utiliser screen

Mysql:

mysql -u username -p new_database < data-dump.sql