Changes

Jump to navigation Jump to search
m
minor changes
Line 67: Line 67:  
  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
 +
tar -czvf /temp/xxxx.tar.gz xxxx
    
</li><li>Use scp to copy the tarred files between machines by doing (on server1)
 
</li><li>Use scp to copy the tarred files between machines by doing (on server1)
Line 72: Line 73:  
  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/  
 +
scp /temp/xxxx.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 zzzz /temp/users.tar.gz server2IP:/home/e-smith/files/
  scp -P xxxx /temp/ibays.tar.gz server2IP:/home/e-smith/files/
+
  scp -P zzzz /temp/ibays.tar.gz server2IP:/home/e-smith/files/
 +
scp -P zzzz /temp/xxxx.tar.gz server2IP:/home/e-smith/files/
   −
where xxxx = port number
+
where zzzz = port number
    
</li><li>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)
Line 83: Line 86:  
  tar -xvzf users.tar.gz
 
  tar -xvzf users.tar.gz
 
  tar -xvzf ibays.tar.gz
 
  tar -xvzf ibays.tar.gz
 +
tar -xvzf xxxx.tar.gz
 
  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
 +
rm /home/e-smith/files/xxxx.tar.gz
    
If required, to correct ownership for each user on server2 do
 
If required, to correct ownership for each user on server2 do
624

edits

Navigation menu