aiondemand / AIOD-rest-api

Services for the core of AIoD: Authentication and the metadata catalogue with REST API.
https://api.aiod.eu
MIT License
10 stars 7 forks source link

Automated Backup and Restoration System #275

Closed jsmatias closed 7 months ago

jsmatias commented 8 months ago

This backup system is designed to run within a Docker container using Cron jobs to schedule regular executions.

In summary, it includes:

jsmatias commented 7 months ago

Hi,

I left some feedback. Overall it looks good. Unfortunately, I couldn't test this that well, it seems that tar on macos does not do incremental backups :/ And this does worry me, since it seems that you didn't run this either? Because a critical part of the mysql_restore call is missing (the docker container name).

I can test this in a linux environment later, but figured I will send this feedback already.

Indeed, tar on MacOS doesn't have incremental backups. But I installed GNU tar to to run it locally. In fact, the docker container name was missing! Thanks for spotting that. What happened is that when I was testing it, I ran the command just once directly from terminal and when I passed the commands to the script I forgot the container's name. I ended up not testing it again, because the process to restore the entire DB takes some time.

I cleaned up the DB to make it quicker and tested it properly this time.