Page 1 of 1 |
Stige
Posts: 3542
Location: Finland
|
Posted: Fri, 14th Jun 2013 14:39 Post subject: Easiest way to copy data from old server to new server? |
|
 |
Simply, I want to move all user data, I guess moving /home/ folder will do it to my new host to avoid hassle for all users.
What would be the easiest way to achieve this?
Both servers run Debian.
|
|
Back to top |
|
 |
Werelds
Special Little Man
Posts: 15098
Location: 0100111001001100
|
Posted: Fri, 14th Jun 2013 14:52 Post subject: |
|
 |
rsync
Keeps all folders intact and everything.
While logged in on the new server:
- rsync -uvrz user@oldhost.com:/home/ /home/
(note the trailing slashes, they're important).
Also best to do it in a separate screen of course: screen -dmS filetransfer && screen -r filetransfer
Then hit CTRL+A and CTRL+D to detach once the transfer is running. You can reattach with screen -r filetransfer to see the progress.
|
|
Back to top |
|
 |
Stige
Posts: 3542
Location: Finland
|
|
Back to top |
|
 |
Werelds
Special Little Man
Posts: 15098
Location: 0100111001001100
|
Posted: Fri, 14th Jun 2013 15:21 Post subject: |
|
 |
Also, run that command again after you've updated the hostnames to sync any changed/new files. Rsync does that too 
|
|
Back to top |
|
 |
Stige
Posts: 3542
Location: Finland
|
|
Back to top |
|
 |
|
Posted: Fri, 14th Jun 2013 19:41 Post subject: |
|
 |
naturally a chown pass is required for a new system with new user guids
|
|
Back to top |
|
 |
Stige
Posts: 3542
Location: Finland
|
|
Back to top |
|
 |
Werelds
Special Little Man
Posts: 15098
Location: 0100111001001100
|
Posted: Sat, 15th Jun 2013 17:23 Post subject: |
|
 |
Late to the party, but if it's MySQL you can use mysqldump or simply copy the datafiles. Will also keep privileges intact
Postgres...meh. Postgres requires a bit more work, as everything with that DBMS does. Postgres altogether is just horrible to work with, everything you want to do is extremely cumbersome.
|
|
Back to top |
|
 |
Stige
Posts: 3542
Location: Finland
|
|
Back to top |
|
 |
Page 1 of 1 |
All times are GMT + 1 Hour |