Skip to content

Commit

Permalink
Improve server migration documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gutard committed Aug 4, 2015
1 parent 550744f commit e890c54
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,37 +117,43 @@ Server migration
----------------

It is a new installation with an additional backup/restore and a file transfert
in between.
in between. The commands below are examples to adapt to your actual configuration
(server names, database configuration).

Files and database backup on the old server :
Backup files and database on the old server:

::

cd Geotrek
sudo -u postgres pg_dump -Fc geotrekdb > geotrekdb.backup
tar cvzf data.tgz geotrekdb.backup var/static/ var/media/paperclip/ var/media/upload/

Files restoration on the new server :
Get and unzip Geotrek sources on the new server:

::

wget https://github.com/makinacorpus/Geotrek/archive/2.0.0.zip
unzip 2.0.0.zip
mv Geotrek-2.0.0 Geotrek
cd Geotrek

Restore files on the new server:

::

scp old_server:Geotrek/data.tgz .
tar xvzf data.tgz

Then edit `etc/settings.ini` to update host variable and `geotrek/settings/custom.py`
to update IGN key.

Installation on the new server :
Install Geotrek on the new server:

::

./install.sh

Database restoration on the new server :
Restore database on the new server:

::

Expand Down

0 comments on commit e890c54

Please sign in to comment.