...
- Clowder Disk Storage
- Goto the clowder custom configuration /home/clowder/clowder/custom/custon.conf on the server you are copying from
find the path of clowder file storage - something like this
Code Block clowder.diskStorage.path="/home/clowder/data"
- Likewise create or get the clowder file storage path from the server you are copying to (might be same path):
- authentication
- create a key, or
- user auth
- rsync the data
in the source server
Code Block rsync -az /home/clowder/data/uploads <source server>:/home/clowder/data
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
- Goto the clowder custom configuration /home/clowder/clowder/custom/custon.conf on the server you are copying from
- Postgresdb
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
- Scp the file to the target server
On the targer server, if you already have a geostream database
Code Block sudo -u postgres psql geostream < geostream.sqksql
- if you need a new database of or to replace and existing database, look here Recreate a Database
- Mongodb
In a directory on the source VM
Code Block sudo mongodump
Copy the database files to the source VM
Restore the database on the target VM
Code Block sudo mongorestore -h mongo-db-1:27017
...