Transfers personal data from old Panda1 server to the new Panda2 server using Screen and SSH keys.
- Your home and data directories on Panda2 should be empty before. Otherwise there is a risk of overwriting the data already on Panda2. Home directory is
/u/nexmap/{username}and data directory is/u/data/{username}. - You need to have the same login name for both servers for this script to work.
- The script ends with deleting the .ssh/authorized_keys after completion. If you have never heard of SSH keys and the ssh-copy-id command, that is probably ok.
- Open a terminal on Panda2, either using ThinLinc or an SSH connection.
- Clone this repository to Panda2:
$ git clone https://github.com/acjak/pandatransfer.git- Got to the new directory:
$ cd pandatransfer- Run the script:
$ sh pandatransfer.sh- You will be asked for the password for your Panda1 login.
The transfer should now be running in the background, even when closing the SSH or ThinLinc connection. To see the progress use the command
$ screen -dr pandatransferTo leave this screen again, press CTRL+A followed by D. If there is no screen matching the name pandatransfer, the transfer of files from Panda1 to Panda2 is completed.