aboutsummaryrefslogtreecommitdiff
path: root/README.org
blob: fbc570508a0fd5c16e1d95544faf78cd6a4099a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
The GeneNetwork database is being migrated from a relational database
to a plain text and RDF database. This repository contains code to
dump the relational database to plain text.

* Using

Drop into a development environment with

#+BEGIN_SRC shell
  $ guix shell
#+END_SRC

Describe the database connection parameters in a file /conn.scm/ file
as shown below. Take care to replace the placeholders within angle
brackets with the appropriate values.

#+BEGIN_SRC scheme
  ((username . "<username-here>")
   (password . "<password-here>")
   (database . "<database-name-here>")
   (host . "<hostname-here>")
   (port . <port-here>))
#+END_SRC

Then, to dump the database, run

#+BEGIN_SRC shell
  $ ./pre-inst-env ./dump.scm
#+END_SRC

The database will be dumped to ~/data/dump/. Make sure there is enough
free space! It's best to dump the database on penguin2 where disk
space and bandwidth are not significant constraints.

* Contributing

See bugs and tasks in BUGS.org.