Line 43: |
Line 43: |
| You can delete any users, ibays, groups and other settings not required on the restored server via server manager. | | You can delete any users, ibays, groups and other settings not required on the restored server via server manager. |
| | | |
− | It is preferable to tar/untar data so you don't loose ownership and permissions during the copy from server1 to server2. If copying user data & email using normal copy commands, then ensure that ownership is correct on the new server. | + | It is preferable to tar/untar data so you don't loose ownership and permissions during the copy from server1 to server2. If copying user data and email using normal copy commands, then ensure that ownership is correct on the new server. |
| | | |
| Modify the following commands appropriately to only move the data you require. | | Modify the following commands appropriately to only move the data you require. |
| | | |
− | | + | <ol></li><li>Use tar to compress all the user and ibays folders (on server1) by doing |
− | Use tar to compress all the user and ibays folders (on server1) by doing | |
| cd /home/e-smith/files | | cd /home/e-smith/files |
| tar -czvf /temp/users.tar.gz users | | tar -czvf /temp/users.tar.gz users |
| tar -czvf /temp/ibays.tar.gz ibays | | tar -czvf /temp/ibays.tar.gz ibays |
| | | |
− | | + | </li><li>Use scp to copy the tarred files between machines by doing (on server1) |
− | Use scp to copy the tarred files between machines by doing (on server1) | |
| {{Note box|You will have to have remote access between the servers setup to be able to ssh, either using passwords or ssh keys.}} | | {{Note box|You will have to have remote access between the servers setup to be able to ssh, either using passwords or ssh keys.}} |
| scp /temp/users.tar.gz server2IP:/home/e-smith/files/ | | scp /temp/users.tar.gz server2IP:/home/e-smith/files/ |
Line 65: |
Line 63: |
| where xxxx = port number | | where xxxx = port number |
| | | |
− | Use tar to uncompress all the user and ibay folders by doing (on server2) | + | </li><li>Use tar to uncompress all the user and ibay folders by doing (on server2) |
| cd /home/e-smith/files/ | | cd /home/e-smith/files/ |
| tar -xvzf users.tar.gz | | tar -xvzf users.tar.gz |
Line 76: |
Line 74: |
| cd /home/e-smith/files/users | | cd /home/e-smith/files/users |
| chown -R username:username username | | chown -R username:username username |
− | | + | </li></ol> |
| ---- | | ---- |
| [[Category:Howto]] | | [[Category:Howto]] |