Back up the Data Watcher MongoDB - NEW! 🚀
To back up the Data Watcher database follow these steps:
- On each node where Data Watcher is installed, stop Data Watcher (
dataone.sh stop DW
). - On each node where Data Watcher is installed, start MongoDB (
bin/mongodb start
). - On just one node of your choice among the ones where Data Watcher is installed, launch the
dwbackup.sh
script to backup the Data Watcher database. - On each node where Data Watcher is installed, start Data Watcher (
dataone.sh start DW
).
Need details about start and stop commands? Have a look at the dataone.sh reference page.
The script to back up the Data Watcher database is stored at this path:
$DATAWATCHER_HOME/mongodb/backup
The dwbackup.sh
script logs backup info into $MONGODB_LOG_DIR/dw-backup.log.
Usage:
./dwbackup.sh destination-path
destination-path
is the folder where the backup will be generated and it must exist.
Under destination-path
, the dw-<datetime>/dw
folder will be created.
In case the backup fails, the folder will not be created.
Updated 6 days ago