Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
|
OD? what is oD? They are running
|
My bad, this was a typo. It was OS, not OD.
From your standpoint, I see 2 solutions:
1) scp (ssh copy)
Code:
ssh user@oldComputer
cd /my/directory
scp -r . user@newComputer:/my/new/directory
This will copy recursively every files from the 1st computer to the second via ssh
2)
Code:
ssh user@oldComputer
cd /my/directory
tar cvzf backup.tgz .
scp backup.tgz user@newComputer:/my/new/directory
logoff oldComputer
ssh user@newComputer
cd /my/new/directory
tar xvzfp backup.tgz
This creates a backup on the first computer, send it to the new one.
Then you log on the new computer and decompress the backup.
Those are the 2 first methods that come to my mind.
Of course, I consider that you just need to move files from 1 precise directory.
If you need several, then you'll need to compose from there.
The same for the databases, if you want to copy them, you will need to mmake a dump sql file first, then copy the file, and then reimport on the new server
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 10-13-2009 at 07:43 PM..
|