Line 38: |
Line 38: |
| You should now have a second server (server2) which is identically configured to server1 (except for changes that were made) but without user and ibay data. Note that the user and ibays will exist in server manager and in the file structure, but they will be empty. | | You should now have a second server (server2) which is identically configured to server1 (except for changes that were made) but without user and ibay data. Note that the user and ibays will exist in server manager and in the file structure, but they will be empty. |
| | | |
− | ==='''Copying data to the restored server'''=== | + | ===Copying data to the restored server=== |
| | | |
| You can then optionally transfer the data across the network from server to server either totally or in limited form as required using command line, tar and scp. | | You can then optionally transfer the data across the network from server to server either totally or in limited form as required using command line, tar and scp. |
Line 48: |
Line 48: |
| | | |
| | | |
− | Use tar to compress all the user & 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 |
Line 55: |
Line 55: |
| | | |
| 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 that ssh using passwords will need to be enabled or ssh keys setup between servers)
| |
| scp /temp/users.tar.gz server2IP:/home/e-smith/files/ | | scp /temp/users.tar.gz server2IP:/home/e-smith/files/ |
| scp /temp/ibays.tar.gz server2IP:/home/e-smith/files/ | | scp /temp/ibays.tar.gz server2IP:/home/e-smith/files/ |
| + | |
| If ssh is configured for a different port (than 22) use | | If ssh is configured for a different port (than 22) use |
| scp -P xxxx /temp/users.tar.gz server2IP:/home/e-smith/files/ | | scp -P xxxx /temp/users.tar.gz server2IP:/home/e-smith/files/ |
| scp -P xxxx /temp/ibays.tar.gz server2IP:/home/e-smith/files/ | | scp -P xxxx /temp/ibays.tar.gz server2IP:/home/e-smith/files/ |
| + | |
| where xxxx = port number | | where xxxx = port number |
| | | |
− | | + | Use tar to uncompress all the user and ibay folders by doing (on server2) |
− | Use tar to uncompress all the user & 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 71: |
Line 71: |
| rm /home/e-smith/files/users.tar.gz | | rm /home/e-smith/files/users.tar.gz |
| rm /home/e-smith/files/ibays.tar.gz | | rm /home/e-smith/files/ibays.tar.gz |
− |
| |
− |
| |
| | | |
| If required, to correct ownership for each user on server2 do | | If required, to correct ownership for each user on server2 do |
Line 79: |
Line 77: |
| chown -R username:username username | | chown -R username:username username |
| | | |
− | | + | ---- |
| [[Category:Howto]] | | [[Category:Howto]] |