Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Clowder Disk Storage
    1. Goto the clowder custom configuration /home/clowder/clowder/custom/custon.conf on the server you are copying from
      1. find the path of clowder file storage - something like this

        Code Block
        clowder.diskStorage.path="/home/clowder/data"


      2. Likewise create or get the clowder file storage path from the server you are copying to (might be same path):
    2. authentication
      1. create a key, or
      2. user auth
    3. rsync the data
      1. in the source server

        Code Block
        rsync -az /home/clowder/data/uploads <source server>:/home/clowder/data


      2. For example using user auth from source server to target server 'kryptonite' by user 'luther'

        Code Block
        rsync -az /home/clowder/data/uploads luther@kryptonite:/home/clowder/data


  2. Postgresdb
    1. On source machine in a directory where you have permissions to write, dump the postgres database (assumed named 'geostream')

      Code Block
      sudo -u postgres pg_dump geostream > geostream.sql


    2. Scp the file to the target server
    3. On the targer server, if you already have a geostream database

      Code Block
      sudo -u postgres psql geostream < geostream.sql


    4. if you need a new database or to replace and existing database, look here Recreate a Database
  3. Mongodb
    1. In a directory on the source VM

      Code Block
      sudo mongodump


    2. Copy the database files to the source VM

    3. Restore the database on the target VM

      Code Block
      sudo mongorestore -h mongo-db-1:27017