ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 13 forks source link

Add helper admin scripts #906

Closed JoshuaSBrown closed 10 months ago

JoshuaSBrown commented 11 months ago

Description

This pr adds two scripts:

  1. To create a backup of the arangodb database
  2. A second to update certificates

Both of the scripts are needed in the operation of DataFed.

Tasks

JoshuaSBrown commented 11 months ago

@par-hermes format

dvstans commented 11 months ago

In the backup script you are using tar to create a backup of the database when you likely could just use arangodump or arangobackup to do it in the intended fashion, which could also be restored with the built-in `arangorestorev as well. I anticipate that if you used one of those tools you might not have to stop and start the services to get a clean backup.

It was my understanding that arangodump and arangobackup would not maintain consistency while the database was running under load. If this is not the case, these may be better options.

nedvedba commented 11 months ago

It seems like arangodump may be consistent while the database is running for newer versions but it is only a logical backup, arangobackup does support hot backups however you have to pay for Arango Enterprise so it may just be best to stick with forming an archive of the files for complete physical backups, unless it is decided to invest in enterprise edition in the future, in which case this could be revisited.

JoshuaSBrown commented 10 months ago

@nedvedba if you are happy with this PR please approve it.