CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How to Copy OF Installation (https://www.cfd-online.com/Forums/openfoam-installation/121606-how-copy-installation.html)

Za-ck August 1, 2013 04:31

How to Copy OF Installation
 
Hi Foamers!

I've got a working installation of OpenFOAM in my home directory. Now I would like to copy this installation on another Computer. Is this possible? And how? Doing this results in some errors, when I'm trying to run OpenFOAM in parallel.

Best regards,

Za-ck

wyldckat August 18, 2013 20:29

Greetings Za-ck,

It depends on how you make the copy from one machine to the other one.
  • If it's direct over network, you can use rsync:
    Code:

    rsync -ave ssh --progress ~/OpenFOAM/ othermachinename:~/OpenFOAM/
  • If it's with an intermediate disk/USB drive, you can create a tarball:
    Code:

    cd
    tar -cjf OpenFOAM.tar.bz2 OpenFOAM

    Then to unpack on the other machine:
    Code:

    cd
    tar -xf OpenFOAM.tar.bz2

    • The "cd" command is only to make sure that you are in your home folder, namely the one indicated by this command:
      Code:

      echo $HOME
Best regards,
Bruno

Za-ck August 19, 2013 05:04

Hi Bruno,

I tried the second way and it works perfectly, also in parallel. Thank You!
I think my fault was, that I did not copy the "user-rights".


All times are GMT -4. The time now is 09:01.