Skip to content

Commit b3a10b2

Browse files
committed
About backup scripts
1 parent a936524 commit b3a10b2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,26 @@ services:
131131
The properties can alternatively be provided as system properties on the
132132
command line, e.g. `-DcacheDays=1` or via a [variety of other methods supported by Spring Boot](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html)
133133

134+
# Dump/restore
135+
136+
While you can perform backup of the Docker volumes,
137+
for larger upgrades of CWL Viewer it is recommended instead to do a JSON dump
138+
and re-load, which will force CWL Viewer to fetch and parse again.
139+
140+
The script `dump.sh` can be used for regular backups, it will store the full
141+
output of /workflows as a timestamped gzip-compressed JSON file:
142+
143+
$ ./dump.sh https://view.commonwl.org/ /var/backups/cwl
144+
/var/backups/cwl/2018-06-06T135133+0000.json.gz
145+
146+
The script `load.py` (requires Python 3) can be used to restore from such JSON dumps:
147+
148+
./load.py /var/backups/cwl/2018-06-06T135133+0000.json.gz https://view.commonwl.org/
149+
150+
The optional parameter `--no-commits` can be added to skip those entries that
151+
look like a commit ID. Note that this might break previous permalinks.
152+
153+
134154
# Thanks
135155

136156
Developers and [contributors](https://github.com/common-workflow-language/cwlviewer/graphs/contributors) include:
@@ -139,6 +159,8 @@ Developers and [contributors](https://github.com/common-workflow-language/cwlvie
139159
* Stian Soiland-Reyes http://orcid.org/0000-0001-9842-9718
140160
* Michael Crusoe http://orcid.org/0000-0002-2961-9670
141161
* Carole Goble http://orcid.org/0000-0003-1219-2137
162+
* Charles Overbeck https://github.com/coverbeck
163+
* Finn Bacall http://orcid.org/0000-0002-0048-3300
142164

143165
Thanks to:
144166

0 commit comments

Comments
 (0)