14 | | 1. Copy the war file and the mysql migration script to the server as follows: |
15 | | 1. scp <filename>.war !molgenis@molgenis35.target.rug.nl:./ |
16 | | 1. Ssh to the server: |
17 | | * ssh !molgenis@molgenis14.target.rug.nl |
18 | | * You are now at /srv/molgenis/ where your files where copied. |
19 | | * The database is bbmri, so in order to apply the migration steps you created: |
20 | | * '''BACKUP your DATABASE FIRST''': |
21 | | * mysqldump bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDB.mysql |
| 14 | |
| 15 | ===war file & migration script from your computer === |
| 16 | |
| 17 | 1. Copy the war file and the mysql migration script from your computer to the server as follows: |
| 18 | 1. scp <filename>.war !molgenis@molgenis35.target.rug.nl:./ |
| 19 | |
| 20 | ===Export data from LIVE server === |
| 21 | |
| 22 | 1. Ssh to the server: |
| 23 | * ssh !molgenis@molgenis14.target.rug.nl |
| 24 | 1. Get data: |
| 25 | * mysqldump bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDB.mysql |
| 26 | |
| 27 | ===copy data from LIVE server to your computer === |
| 28 | |
| 29 | 1. scp molgenis@molgenis14.target.rug.nl:./databaseDumps/<date>bbmriDB.mysql ./mysql<date>LIVEdata.mysql |
| 30 | |
| 31 | ===copy data from your computer to test server === |
| 32 | |
| 33 | 1. scp ./mysql<date>LIVEdata.mysql molgenis@molgenis35.target.rug.nl:./databaseDumps/mysql<date>LIVEdata.mysql |
| 34 | |
| 35 | ===Deploy at test server=== |
| 36 | |
| 37 | 1. Ssh to the server: |
| 38 | * ssh !molgenis@molgenis35.target.rug.nl |
| 39 | * You are now at /srv/molgenis/ where your files where copied. |
| 40 | * The database is bbmri, so in order to apply the migration steps you created: |
| 41 | * '''BACKUP your DATABASE FIRST''': |
| 42 | * mysqldump bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDB.mysql |