Script and steps can be used for BUllk Database and directory transfer from one host to another. NOrmaly used for Site transfer.
Create Directory Archive:
CReate archive of current directory to sitesbk.tar file:
$tar cvf /home/indersingh/public_html/sitesbk.tar .
Extract Tar file to directory:
$tar xvf sitesbk.tar /var/www/html/
Create Dump using mysqldump command.Mysql Dump The database:-
$ mysqldump -u inders_himsky -p inders_himskydb6 >himskybkp-sql.sql
Import The database using Mysql command:-
$mysql myhimskydb < himskybkp-sql.sql