PDA

View Full Version : Need help for fail Step Two - Transfer to new server


calvinnguyen
Fri 12th Mar '04, 3:25am
I get successful to backup by follow this command
mysqldump --opt -upoorguy -p poorguys > /home/asian/dump.sql

my /path/to is.../home/asian/

At step Two when I do the command prompt type:
cd /home/asian/
what is yourbackupdirectory? I really don't know yourbackupdirector location

So far I fail, Step Two - Transfer to new server

Telnet/SSH into machine1, and from the command prompt type the following:
cd /path/to/yourbackupdirectory
Then type
ftp MACHINE2
Replace MACHINE2 with the host name (eg. www.example.com ) or IP address (eg. 192.168.0.0 ) of your new server. This should open a connection and ask for your username/password, then it should say ftp>
Type the following, hitting enter after each line:
bin
cd /path/to/newdirectory
put dump.sql

Can anyone explan more details or give example so I can understand this step.

Floris
Fri 12th Mar '04, 6:45am
You can also go into the shell on the NEW server.
Then ftp to the OLD server
and go into /home/asian/ and get the .sql file using the ftp command get file.sql

calvinnguyen
Fri 12th Mar '04, 2:19pm
You can also go into the shell on the NEW server.
Then ftp to the OLD server
and go into /home/asian/ and get the .sql file using the ftp command get file.sql
Thanks floris. It is working now:D