We can start the container again to check that the data was recovered:
docker-compose up
docker-compose exec test cat /home/test/time.txt
At this point I end up with time.txt not containing the original lines from before I forcibly took down the test-volume by running docker-compose down -v
Project looks cool and feature rich. However, I'm failing to get it working on a reduced test case to see how it works in practice.
test.zip
If you read the readme I've explained the series of steps taken. I'm sure there's something really obvious I've missed.
Extract of the readme for your ease:
A simple container that just logs the current time to a file time.txt in an attached volume.
We can use this to test that volumerize does indeed work.
Right run the container:
You will see it generating time stamps. At some point we decide it's time to back it up.
We stop our container:
We start the volumerize container:
We run a backup:
We can stop volumerize and start our container again:
All our data should still be there:
Now let's destroy our container and it's volumes:
We can start the container again to check that the data was lost:
Right we've lost our data. Let's restore it.
Stop our container and start volumerize.
We can start the container again to check that the data was recovered:
At this point I end up with time.txt not containing the original lines from before I forcibly took down the test-volume by running
docker-compose down -v