This tool can only be used for Docker Container Mysql databases, but can be probably tweaked for other databases types and enviroments
dunno
move this somewhere else
create setting script
also i want more settings
ok i will have to create file system as mentioned, and have to figure out new commands.
config id exluded from source controll config contains two variables
- CONTAINERID
- Docker container id ex: 02b3c87c4dde
- DATABASENAME
- Name of database which data you want save
(/bin/CommitDatabase.sh)
Code steps:
- Copy data from Docker container
- Archivate data from container
- Move the data to commit folder
- purge the working directory
- done!
- Load all commits
- let use chose commit
- upload commit files to docker container
- purge working directort
cause i was too stupid to read about how mysql handles table scheme, file system need to be reworked, mainly not working completely now
- Work Directory
- Commit Directory
- Database Data Directory
- database table files (*.ibd)
- Database Schema Directory
- mysql.ibd
- Database Data Directory
- Commit Directory
There is none xD, i just realing on tar to create file system and not really think about that